note 69822 deleted from language.operators.type by colder
| From: | colder@php.net | Date: | Sat, 24 Feb 2007 10:04:07 +0000 |
| Subject: | note 69822 deleted from language.operators.type by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123814@lists.php.net to get a copy of this message | ||
Note Submitter: w dot bogaerts at kratz dot nl
----
instanceof only works with objects. So if you want to check if a variable is an object that
implements a certain interface, you need two checks: is_object and instanceof.
A fatal error occurs if instanceof is used with other data types.