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: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.