Re: note 9106 added to Classes and Objects
| From: | J. M. Castagnetto | Date: | Tue, 17 Oct 2000 21:08:01 +0000 |
| Subject: | Re: note 9106 added to Classes and Objects | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6590@lists.php.net to get a copy of this message | ||
You observed this because function's names (and
method's names) are *not* case sensitive. This is a
known characteristic of the language.
A comment indicating this has been added to your note.
--- mfischma@yahoo.com wrote:
> 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
>
> http://www.php.net/manual/language.oop.php
>
>
> --
> PHP Notes Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-notes-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-notes-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
=====
--- Jesus M. Castagnetto (jcastagnetto@yahoo.com)
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/