<?php

$varname = "";

$GLOBALS[$varname] = new stdClass();

$GLOBALS[""]->{""} = "bar";

$GLOBALS[$varname]->$varname = "foo";

?>

Any difference to what you did?  Should PHP spit out warnings every time a 
developer does something that it considers stupid?  Most languages fully 
support the user shooting themselves in the foot -- PHP is not alone in 
this :)


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to