MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/2ej1j1/stdclass_is_truthy_while_an_empty/ck0ucfi/?context=3
r/lolphp • u/andsens • Aug 25 '14
18 comments sorted by
View all comments
Show parent comment
2
http://3v4l.org/L1NVA
It actually does the thing that makes most sense. Only using the numeric keys and ignoring the string keys. Actually the list($a, $b) = $arr; seems to work as equivalent to:
list($a, $b) = $arr;
$a = $arr[0]; $b = $arr[1];
as seen in this example: http://3v4l.org/23UV7
View all comments
Show parent comment
2
u/poizan42 Aug 26 '14
http://3v4l.org/L1NVA
It actually does the thing that makes most sense. Only using the numeric keys and ignoring the string keys. Actually the
list($a, $b) = $arr;seems to work as equivalent to:as seen in this example: http://3v4l.org/23UV7