note 30633 added to keyword.parent

From: Date: Mon, 24 Mar 2003 14:18:46 +0000
Subject: note 30633 added to keyword.parent
Groups: php.notes 
Request: Send a blank email to php-notes+get-45737@lists.php.net to get a copy of this message
Sorry but my example above it's correct only if there's one class that inherits by another class. If the hierarchical tree is deeper than 2 my example doesn't work. The result is a infinite loop cycle. Why? Because the only instanced object is the B class (in my example). $this alwais refer to instanced object. See also the "sal at stodge dot org" notes in 4 October 2002. -- http://www.php.net/manual/en/keyword.parent.php http://master.php.net/manage/user-notes.php?action=edit+30633 http://master.php.net/manage/user-notes.php?action=delete+30633 http://master.php.net/manage/user-notes.php?action=reject+30633

« previous php.notes (#45737) next »