note 9106 deleted from Classes and Objects by jmcastagnetto

From: Date: Tue, 17 Oct 2000 20:46:34 +0000
Subject: note 9106 deleted from Classes and Objects by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-6587@lists.php.net to get a copy of this message
I noticed the following: <PRE> class a { function something() { echo "class a something"; } } class SomeThing extends a { function SomeThing (){ echo "SomeThing constructor"; } } mySomeThing=new SomeThing; mySomeThing->something(); </PRE> would output SomeThing cunstructor instead of SomeThing cunstructor class a something I had to rename the function in class a to aSomething and call it with mySomeThing->aSomething() to get it to work properly. I am using php3, and I don't know if this was fixed in php4

« previous php.notes (#6587) next »