previousAlignment of function parameters (Previous) (Next) Array formattingnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

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);
?>
previousAlignment of function parameters (Previous) (Next) Array formattingnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.