Re: parent constructor

From: Date: Wed, 07 Feb 2001 04:14:09 +0000
Subject: Re: parent constructor
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38488@lists.php.net to get a copy of this message
ok, I == dumb. this works: $parentClass = get_parent_class($this); eval("$parentClass::$parentClass();"); still, I think I should be able to do what I wrote below. -aaron At 8:05 PM -0800 2/6/01, Aaron Tuller wrote:
why doesn't this work? $parentClass = get_parent_class($this); parent::{$parentClass}(); I get a parse error. can I not use variable functions with the "::" syntax? I tried eval() and it loses the context. thanks for the help! -aaron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#38488) next »