note 9107 deleted from language.oop by victor

From: Date: Sat, 07 Dec 2002 15:43:09 +0000
Subject: note 9107 deleted from language.oop by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40474@lists.php.net to get a copy of this message
[Editor's note: function's and method's names are *not* case sensitive in PHP, this is a known characteristic of the language, so it is no wonder that the behavior commented here was observed.] CORRECTION FROM THE PREVIOUS POST I noticed the following: class a { function something() { echo "class a something"; } } class SomeThing extends a { function SomeThing (){ echo "SomeThing constructor"; } } mySomeThing=new SomeThing; mySomeThing->something(); would output SomeThing cunstructor 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 (#40474) next »