note 14854 added to language.oop.php
| From: | php-general at lists dot php dot net | Date: | Fri, 17 Aug 2001 13:58:52 +0000 |
| Subject: | note 14854 added to language.oop.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16843@lists.php.net to get a copy of this message | ||
Well,
$UserInfo_var = USER_INF_CLASS;
$UserInformation = new $UserInfo_var;
works, but, its UGLY, cause I need one more VAR...
I think there is a way to instantiate from a defined constant....... but, I don´t know it...
http://www.php.net/manual/en/language.oop.php