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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]