note 28863 deleted from language.oop by irchtml
| From: | irchtml@php.net | Date: | Sat, 28 Feb 2004 23:15:40 +0000 |
| Subject: | note 28863 deleted from language.oop by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65967@lists.php.net to get a copy of this message | ||
Note Submitter: phil@philkern.de
----
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 :)