From 48b81962f4c17c25931c8b90990e93e6db19687a Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Mon, 24 May 2004 23:32:50 +0000 Subject: [PATCH] Mention the deprecated is_a() within the instanceof docs. Deals with bug #27503 See also get_class(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@159566 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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. +