note 30981 added to ref.classobj
| From: | Carlos at rack1 dot php dot net | Date: | Sat, 05 Apr 2003 10:32:58 +0000 |
| Subject: | note 30981 added to ref.classobj | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46248@lists.php.net to get a copy of this message | ||
Commenting the above example:
We read: "$int->s(); // now it shows the right value". But no, it it won't, even
if expected ;) The s() is buggy and should be:
function s() { echo $this->m[0]; }
then it will work. ;)
--
http://www.php.net/manual/en/ref.classobj.php
http://master.php.net/manage/user-notes.php?action=edit+30981
http://master.php.net/manage/user-notes.php?action=delete+30981
http://master.php.net/manage/user-notes.php?action=reject+30981