Just curious what style everyone here codes in.. I myself am style 1.
Style 1:
Style 2:
Style 3:
Style 4:
Style 5:
Style 1:
PHP Code:
if (condition) {
// do something here
} elseif (condition) {
// do something else
} else {
// do something else
}
PHP Code:
if (condition)
{
// do something here
}
elseif (condition)
{
// do something else
}
else
{
// something else
}
PHP Code:
if (condition) {
// do something here
}
elseif (condition) {
// do something else
}
else {
// final action
}
PHP Code:
if (condition)
{
// do something here
}
else
if (condition)
{
// do something else
}
else
{
// final action
}
PHP Code:
if (condition)
{
// do something here
}
else if (condition)
{
// do something else
}
else
{
// final action
}
Comment