vrana Thu Nov 3 05:18:02 2005 EDT
Modified files: /phpdoc/en/language operators.xml Log: instanceof checks parents and interfaces too (bug #34993) http://cvs.php.net/diff.php/phpdoc/en/language/operators.xml?r1=1.97&r2=1.98&ty=u Index: phpdoc/en/language/operators.xml diff -u phpdoc/en/language/operators.xml:1.97 phpdoc/en/language/operators.xml:1.98 --- phpdoc/en/language/operators.xml:1.97 Wed Oct 26 04:35:20 2005 +++ phpdoc/en/language/operators.xml Thu Nov 3 05:17:58 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.97 $ --> +<!-- $Revision: 1.98 $ --> <chapter id="language.operators"> <title>Operators</title> <simpara> @@ -1111,9 +1111,10 @@ <sect1 id="language.operators.type"> <title>Type Operators</title> <para> - PHP has a single type operator: <literal>instanceof</literal>. - <literal>instanceof</literal> is used to determine whether a given - object is of a specified <link linkend="language.oop">object class</link>. + PHP has a single type operator: <literal>instanceof</literal> is used to + determine whether a given object, his parents or their implemented <link + linkend="language.oop5.interfaces">interfaces</link> are of a specified + <link linkend="language.oop5.basic.class">object class</link>. </para> <simpara> The <literal>instanceof</literal> operator was introduced in PHP 5.