Re: Variable objects?
| From: | Goetz Lohmann | Date: | Tue, 04 Feb 2003 11:25:27 +0000 |
| Subject: | Re: Variable objects? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134244@lists.php.net to get a copy of this message | ||
Leif K-Brooks schrieb:
> I'm planning to use variable objects in a new project I'm working on.
> The problem is, I can't find one page of documentation on them, so I
> can't be sure if I'm going to be using an accidential feature that will
> disappear. As an example of them working, the following outputs "In
> a_class.":
> <?php
> class a_class{
> function a_class(){
> echo 'In a_class.';
> }
> }
> $foo = 'a_class';
> new $foo();
> ?>
>
take a look at
http://www.php.net/manual/en/ref.classobj.php
;-)
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ ------------------------------------------------------
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation.