jeudi 4 juillet 2019

What is good practice of using conditional IF statement?

Using IF statement without curly braces, is it a good practice or bad?

if($a)
foreach($a as $k=>$v)
{
 echo $v;
}


if($a)
{
foreach($a as $k=>$v)
{
 echo $v;
}
}

Aucun commentaire:

Enregistrer un commentaire