is there a neat literal syntax for creating objects on the fly without
defining a type?

whenever i need to do it i do something like

    $x = (object) array('a'=>1, 'b'=>3, ...);

which works but isn't very lovely. it's neater in, for example, javascript.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to