rfc:list_reference_assignment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:list_reference_assignment [2017/01/04 16:05] bp1222rfc:list_reference_assignment [2017/01/11 22:38] bp1222
Line 26: Line 26:
 $a = $array[0]; $a = $array[0];
 $b =& $array[1]; $b =& $array[1];
 +</code>
 +
 +<code php>
 +/* Note; []= syntax works the same, so the following is functionally equivalent to the example */
 +[$a, &$b] = $array;
 </code> </code>
  
rfc/list_reference_assignment.txt · Last modified: 2017/12/09 12:43 by nikic