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? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -