if(argument) action;
if(argument) {action;}
if(argument){
action1;
action2;
}
I disagree.syntax readability wise, it's better to use one line for everything when there is one commandand braces when there is many commandsPHP:if(argument) action;
PHP:if(argument){ action1; action2; }
if ($act == "main")
{
echo "hi";
if ($logged) echo "welcome";
$a*5;
}
if ($act == "main")
{
echo "hi";
if ($logged)
echo "welcome";
$a*5;
}