Aquí les muestro algunos ejemplos.
Código PHP:
   foreach( $patterns as $name => $pattern )
foreach($patterns as $name => $pattern) 
    Código PHP:
   if(1 <= preg_match_all( $pattern, $subject, $found, $flags ) )
if(1<=preg_match_all($pattern,$subject,$found,$flags)) 
    Código PHP:
   $bool = ($i<7 && $j>8 || $k==4);
$bool = (($i < 7) && (($j < 8) || ($k == 4)));
$bool = ($i < 7 && ($j < 8 || $k == 4)); 
    Código PHP:
   if(algo){
    for(iteracion){
        //código
    }
}
 
if (algo)
{
    for (iteracion)
    {
        //código
    }
} 
    Código PHP:
   while(condición) funcion();
 
while (condición)
{
    funcion();
} 
     
 
 Forma correcta de organizar código PHP
 Forma correcta de organizar código PHP 



