Slide 184
Slide 184 text
S H O RT L I ST ( ) SY N TA X : M U T UA L LY E XC LU S I V E SY N TA X
// This is not allowed:
list([$a, $b], [$c, $d]) = [[1, 2], [3, 4]];
// This is also not allowed:
[list($a, $b), list($c, $d)] = [[1, 2], [3, 4]];
// This, however, is allowed:
[[$a, $b], [$c, $d]] = [[1, 2], [3, 4]];
// This also:
list(list($a, $b), list($c, $d)) = [[1, 2], [3, 4]];
@ D S H A F I K