From a7a0ce13e38c5046ebd9354dbc5bed003e2580e3 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 3 Nov 2005 10:17:58 +0000 Subject: [PATCH] instanceof checks parents and interfaces too (bug #34993) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@199893 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/language/operators.xml b/language/operators.xml index 3e7042c5f7..66f2a17a7e 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1,5 +1,5 @@ - + Operators @@ -1111,9 +1111,10 @@ var_dump($a === $b); // bool(false) Type Operators - PHP has a single type operator: instanceof. - instanceof is used to determine whether a given - object is of a specified object class. + PHP has a single type operator: instanceof is used to + determine whether a given object, his parents or their implemented interfaces are of a specified + object class. The instanceof operator was introduced in PHP 5.