$foo->bar = 42;

Whether bar is defined or not, it will work, last I heard.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
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
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to