[PHP-DEV] creating objects on the fly From: Brian Moon (brian <email protected>)
Date: 08/14/99

I was coding along and thought, "You know it would be cool if I could create
an object like I can an array."

So, I figured it would be possible to create a PHP function called object()
that acted just like array. I know I can use basically (object)array() and
do it, But why not put it in PHP. I figured it could just call array() and
then set the var to an object before it returned it. So, I started looking
for the array() function in the PHP 3.0.11 source I have and could not find
it.

A. Are there any reasons this could or should not be done.

B. Where is the array function?

Brian.

PS. I would also like to do a create_object and create_array function that
would take only indices as parameters instead of the values and/or indices
like array does? Thoughts?

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>