Alignment of assignments

To support readability, the equal signs may be aligned in block-related assignments:

<?php

$short  
foo($bar);
$longer foo($baz);
?>

The rule can be broken when the length of the variable name is at least 8 characters longer/shorter than the previous one:

<?php

$short 
foo($bar);
$thisVariableNameIsVeeeeeeeeeeryLong foo($baz);
?>
Alignment of function parameters (Previous) Array formatting (Next)
Last updated: Tue, 02 Jun 2009 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.