How to call a member from the base class?

From: Date: Mon, 03 Sep 2001 09:47:26 +0000
Subject: How to call a member from the base class?
Groups: php.general 
Request: Send a blank email to php-general+get-65731@lists.php.net to get a copy of this message
Hi all, I am wondering, if I do the following: class A { function something() { } } class B extends A { function something() { } } var $varB = new B; $varB->something(); How do I make sure in the something() member of class B, that the parent class member something() is also called? Can I do this: class B extends A { function something() { // some other actions... A::something(); } } Or do I need to do something else? Thanks, Alexander. -- PS: Replace the underscore (_) in my e-mail address with a minus sign (-).

« previous php.general (#65731) next »