Array reference always succeeds
php -r 'var_dump($a["foo"]);var_dump(&$a["foo"]);var_dump($a);'
PHP Notice: Undefined variable: a in Command line code on line 1
NULL
&NULL
array(1) {
["foo"]=>
NULL
}The WTF here is the lack of a second notice and the fact that the array changed. There is logic in this, of course, but it's weird to the extreme. You can even add a &$a['foo']['bar'] to this and despite &$a['foo'] not being an array it will still succeed.

Comments
Howdy! Do you know if they
Howdy! Do you know if they make any plugins to assist with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains. If you know of any please share. Thanks! hypnosis therapy to stop smoking
Thank you for the share, more
Thank you for the share, more than excited on being here, please keep coming with more on these resources.
Chris Harris
workers compensation fraud prevention
Thanks for sharing this
Thanks for sharing this information. I really like your way of expressing the opinions and sharing the information. It is good to move as chance bring new things in life, paves the way for advancement,
"new york marathon"
Thank you for the share, more
Thank you for the share, more than excited on being here, please keep coming with more on these resources.
Chris HarrisFerienhäuser in Hvide Sande
Do you know if they make any
Do you know if they make any plugins to assist with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains. If you know of any please share. petit boulot
Post new comment