note 65936 added to keyword.extends
| From: | NeelamBhatt at osu1 dot php dot net | Date: | Wed, 10 May 2006 09:44:21 +0000 |
| Subject: | note 65936 added to keyword.extends | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111059@lists.php.net to get a copy of this message | ||
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();
----
Server IP: 66.163.161.117
Probable Submitter: 61.247.235.49
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/keyword.extends.php
Edit -- http://master.php.net/note/edit/65936
Del: integrated -- http://master.php.net/note/delete/65936/integrated
Del: useless -- http://master.php.net/note/delete/65936/useless
Del: bad code -- http://master.php.net/note/delete/65936/bad+code
Del: spam -- http://master.php.net/note/delete/65936/spam
Del: non-english -- http://master.php.net/note/delete/65936/non-english
Del: in docs -- http://master.php.net/note/delete/65936/in+docs
Del: other reasons-- http://master.php.net/note/delete/65936
Reject -- http://master.php.net/note/reject/65936
Search -- http://master.php.net/manage/user-notes.php