note 14962 modified in language.oop by sander
| From: | sander@php.net | Date: | Sat, 06 Apr 2002 19:05:41 +0000 |
| Subject: | note 14962 modified in language.oop by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-28739@lists.php.net to get a copy of this message | ||
[Ed. note: default is a keyword in PHP (used with switch()) and therefor can't be used as a
function- or methodname.]
It would appear that no class method can be called 'default()'. PHP generates an error if
you attempt the following:
class MyClass
{
function default()
{
...
}
...
}
--was--
It would appear that no class method can be called 'default()'. PHP generates an error if
you attempt the following:
class MyClass
{
function default()
{
...
}
...
}
http://www.php.net/manual/en/language.oop.php