note 32249 added to function.is-subclass-of

From: Date: Wed, 21 May 2003 16:04:06 +0000
Subject: note 32249 added to function.is-subclass-of
Groups: php.notes 
Request: Send a blank email to php-notes+get-48749@lists.php.net to get a copy of this message
After some quick tests, I thought I'd point out that is_subclass_of doesn't return true if the object actually *is* that class. $object = new Cauliflower(); is_a($object, 'cauliflower') == true; is_subclass_of($object, 'cauliflower') == false; ---- Manual Page -- http://www.php.net/manual/en/function.is-subclass-of.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32249 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32249&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32249&report=yes

« previous php.notes (#48749) next »