note 69822 added to language.operators.type
| From: | w dot bogaerts at kratz dot nl | Date: | Fri, 22 Sep 2006 08:32:26 +0000 |
| Subject: | note 69822 added to language.operators.type | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117411@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 83.137.20.120
Probable Submitter: 213.84.72.157
----
Manual Page -- http://www.php.net/manual/en/language.operators.type.php
Edit -- https://master.php.net/note/edit/69822
Del: integrated -- https://master.php.net/note/delete/69822/integrated
Del: useless -- https://master.php.net/note/delete/69822/useless
Del: bad code -- https://master.php.net/note/delete/69822/bad+code
Del: spam -- https://master.php.net/note/delete/69822/spam
Del: non-english -- https://master.php.net/note/delete/69822/non-english
Del: in docs -- https://master.php.net/note/delete/69822/in+docs
Del: other reasons-- https://master.php.net/note/delete/69822
Reject -- https://master.php.net/note/reject/69822
Search -- https://master.php.net/manage/user-notes.php