Re: How dynamically create objects
| From: | Richard Lynch | Date: | Wed, 15 Aug 2001 03:49:03 +0000 |
| Subject: | Re: How dynamically create objects | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62755@lists.php.net to get a copy of this message | ||
$foo->bar = 42;
Whether bar is defined or not, it will work, last I heard.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Bret R. Zaun <bretrzaun@hotmail.com>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Tuesday, August 14, 2001 10:50 AM
Subject: How dynamically create objects
> Hello,
> I would like to create an object from a db result like MySQL does in
> mysql_fetch_object
> How can I create an object with members which names are set at runtime ?
>
> Regards
> Bret
>
>