Re: predeclared classes
| From: | Alan Knowles | Date: | Sat, 12 Jan 2002 14:36:41 +0000 |
| Subject: | Re: predeclared classes | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76776@lists.php.net to get a copy of this message | ||
interesting things that can be done with stdclass
$t = new stdClass(); // eg. use it as a dummy class - for use in sessions???- guarenteed to work..$b = (object) array("aa"=>"bb"); // creates $b as a class - type stdClass not sure where/how to use *OverloadedTestClass regards alan * Jan Lehnardt wrote:
Hi, I am going to add a manual section about predeclared classes. According to http://php.net/manual/de/function.get-declared-classes.php there three of them. Can these be used in userspace? What is ther purpose? Directory for the dir() funcion is obvious, but the other ones? Can a developer give a statement on that? Thank You. Jan