note 26706 rejected from keyword.parent by maxim

From: Date: Sat, 09 Nov 2002 20:11:00 +0000
Subject: note 26706 rejected from keyword.parent by maxim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-39235@lists.php.net to get a copy of this message
surely hard coding the name of the parent class isn't too much of an issue - normally you would hard code the parent class in the class definition, unless you are doing something weird like: $parentclass = 'bar'; class newclass extends $parentclass { ... } $parentclass = 'foo'; class otherclass extends $parentclass { ... } not entirely sure why you'd want to do this (or if it would work), but even then you could do : eval ("$parentclass::$parentclass();"); why on earth would you need to do this?

« previous php.notes (#39235) next »