how to instantiate new object
| From: | Yader Hernandez | Date: | Wed, 02 May 2012 03:46:20 +0000 |
| Subject: | how to instantiate new object | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-60409@lists.php.net to get a copy of this message | ||
Hello,
I was wondering how to create a new object from a function call?
By this I mean if I call foo() from a script, that should return a new
instance of an object. If I call foo() again, it should be a new instance
of an object as well.
I haven't been able to find any good examples from the code I've been
reading.
Does anyone know of a good place to find an example?
thanks