note 26706 added to keyword.parent

From: Date: Sat, 09 Nov 2002 20:00:41 +0000
Subject: note 26706 added to keyword.parent
Groups: php.notes 
Request: Send a blank email to php-notes+get-39234@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? -- http://www.php.net/manual/en/keyword.parent.php http://master.php.net/manage/user-notes.php?action=edit+26706 http://master.php.net/manage/user-notes.php?action=delete+26706 http://master.php.net/manage/user-notes.php?action=reject+26706

« previous php.notes (#39234) next »