Code: Select all
<?php
if ((condition1) || (condition2)) {
action1;
blabla;
} elseif ((condition3) && (condition4)) {
action2;
blablabla;
} else {
defaultaction;
blablablabla;
}
?>I would do the code above like this:
Code: Select all
<?php
if ((condition1) || (condition2))
{
action1;
blabla;
}
elseif ((condition3) && (condition4))
{
action2;
blablabla;
}
else
{
defaultaction;
blablablabla;
}
?>Could anyone enlighten me, please?
P.S.: and yes, the code is just an example, I know PHP's switch etc. - it's just there make my point clear.