|
|
(Next) Recommendations |
||||
| |
|||||
|
|||||
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:
<?php
$some_array = array(
'foo' => 'bar',
'spam' => 'ham',
);
?>
|
|
(Next) Recommendations |
||||||||
| |
|||||||||
|
|||||||||