note 58764 deleted from language.oop by bjori
| From: | bjori@php.net | Date: | Mon, 27 Mar 2006 21:26:32 +0000 |
| Subject: | note 58764 deleted from language.oop by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106788@lists.php.net to get a copy of this message | ||
Note Submitter: Joachim Kruyswijk
----
Contrary to the manual, you *can* use "stdClass" as a class name in PHP, provided that you
use it "on the fly":
$foo = new stdClass;
$foo->bar = "hello, world";
echo $foo->bar;
Output:
hello, world