note 58764 added to language.oop
| From: | JoachimKruyswijk at osu1 dot php dot net | Date: | Tue, 15 Nov 2005 13:41:44 +0000 |
| Subject: | note 58764 added to language.oop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98587@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/language.oop.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58764
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58764&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58764&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58764&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58764&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58764&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58764&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58764&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58764&report=yes
Search -- http://master.php.net/manage/user-notes.php