note 28863 added to language.oop
| From: | phil at philkern dot de | Date: | Sun, 26 Jan 2003 13:43:52 +0000 |
| Subject: | note 28863 added to language.oop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42762@lists.php.net to get a copy of this message | ||
Subclasses inside of classes are not possible :/
Something like that (which would help to keep the code a bit cleaner) you would have to do in an
other way:
class SomeClass {
class Debug {
function Log($text) {
echo $text;
}
}
function some_function() {
SomeClass::Debug::Log($text); // Error
}
}
So you can't built up perl alike constructs :)
--
http://www.php.net/manual/en/language.oop.php
http://master.php.net/manage/user-notes.php?action=edit+28863
http://master.php.net/manage/user-notes.php?action=delete+28863
http://master.php.net/manage/user-notes.php?action=reject+28863