note 32249 deleted from function.is-subclass-of by nlopess
| From: | nlopess@php.net | Date: | Wed, 27 Oct 2004 14:00:35 +0000 |
| Subject: | note 32249 deleted from function.is-subclass-of by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79179@lists.php.net to get a copy of this message | ||
Note Submitter: jellybob at php dot net
----
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;