Array formatting

Assignments in arrays may be aligned. When splitting array definitions onto several lines, the last value may also have a trailing comma. This is valid PHP syntax and helps to keep code diffs minimal:


= array(
'foo'  => 'bar',
'spam' => 'ham',
Alignment of assignments (Previous) Recommendations (Next)
Last updated: Thu, 08 Oct 2015 — 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.