Hi,
<?php class A { public function func() { echo "A"; } } class B extends A { public function func() { echo "B"; } } $cls=new B(); $cls->func(); //echo: B ?>
How can I call func() of class A from $cls object (that when I call func() it will echo "A" and not "B")?
Changing functions names or declaring another function in class B that will call parent::func() are not good for me.
-thanks, Eli
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php