rfc:list_default_value
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:list_default_value [2015/11/09 13:53] – reeze | rfc:list_default_value [2015/11/09 13:53] – reeze | ||
---|---|---|---|
Line 24: | Line 24: | ||
// comparation | // comparation | ||
list($a, list($b=1, $c=2) = $arr; | list($a, list($b=1, $c=2) = $arr; | ||
- | // opposite | + | // or we need to check it ourself |
if (!isset($arr[1][0])) { | if (!isset($arr[1][0])) { | ||
$arr[1][0] = 1; | $arr[1][0] = 1; |
rfc/list_default_value.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1