diff --git a/language/operators.xml b/language/operators.xml index 40efd26e01..fcf5576214 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1,5 +1,5 @@ - + Operators @@ -882,7 +882,10 @@ var_dump($a === $b); // bool(false) object is of a specified object class. - instanceof was introduced in PHP 5. + The instanceof operator was introduced in PHP 5. + Before this time is_a was used but + is_a has since been deprecated in favor of + instanceof. @@ -903,11 +906,15 @@ if ($thing instanceof B) { ]]> - As $thing is an object of type A, but not B, only the block - dependent on the A type will be executed: + As $thing is an object of type A, but + not B, only the block dependent on the A type will be executed: A + + See also get_class and + is_a. +