note 65936 deleted from keyword.extends by danbrown

From: Date: Wed, 17 Jun 2009 19:02:33 +0000
Subject: note 65936 deleted from keyword.extends by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157021@lists.php.net to get a copy of this message
Note Submitter: Neelam Bhatt ---- Tilman I think you are little bit confused about get_parent_class() function. Actually this function return the 'parent class' of the class, object belong to; with which it is called. In your example one_get_parent_class_name() and two_get_parent_class_name() are similar functions and are located in different classes. Their behaviour will be same if will be called with same object. Just add the following two line at the end. You will get the better understanding. $two=new two(); $two->two_get_parent_class_name();

« previous php.notes (#157021) next »