Is this a php variable variable bug? -


is there logical explanation this?

<?php   $$a = 'hello world';   echo $$a; //displays hello world   echo $$aa; //displays hello world   echo $$aaa; //displays hello world   ?> 

if try

$$a = 'hello world'; echo $$a; //displays hello world echo $$aa; //displays hello world echo $$aaa; //displays hello world   die( "<pre>" . print_r( get_defined_vars(), true ) . "</pre>" ); 

you can see has registed variable no name yes, according php's naming conventions, bug


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

What's the encoding type of Android 2.2 push message? -

visual studio - Deleting lines of code in a text editor -