"J.P." wrote:is> Hi,
> Iím trying to store objects in an array and then later I want to
> retrieve the object again. I tried it the following way, but it
> $items = array();
> $newItem = new Item();
> array_push($items, $newitem);
> $retrievedItem = $items;
> Now I get the message:
> Fatal error: Call to undefined function: display() in ...
> So $retrievedItem is not of class Item. How can I retrieve it so itThere may be a better solution, but you can always serialize the>
> an object of class Item?
object (see php doc).
[url]http://www.dbForumz.com/[/url] This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: [url]http://www.dbForumz.com/PHP-store-objects-array-retrieve-ftopict141572.html[/url]
Visit Topic URL to contact author (reg. req'd). Report abuse: [url]http://www.dbForumz.com/eform.php?p=473383[/url]