note 4615 deleted from Classes and Objects by jmoore

From: Date: Sat, 10 Feb 2001 23:31:01 +0000
Subject: note 4615 deleted from Classes and Objects by jmoore
Groups: php.notes 
Request: Send a blank email to php-notes+get-10891@lists.php.net to get a copy of this message
Helo, mates! In php4 .0 we CAN call inherited class functions just try this out <PRE> class a { function r() { echo "class a , rn"; } }; class b extends a { function r() { echo "class b , r n"; } function l() { $this->r(); a::r(); } }; $q = new b(); $q->l(); </PRE> it'll print following lines: <PRE> class b , r class a , r </PRE> ... enjoy .... :)

« previous php.notes (#10891) next »