philip Mon May 24 19:32:50 2004 EDT
Modified files: /phpdoc/en/language operators.xml Log: Mention the deprecated is_a() within the instanceof docs. Deals with bug #27503 See also get_class(). http://cvs.php.net/diff.php/phpdoc/en/language/operators.xml?r1=1.66&r2=1.67&ty=u Index: phpdoc/en/language/operators.xml diff -u phpdoc/en/language/operators.xml:1.66 phpdoc/en/language/operators.xml:1.67 --- phpdoc/en/language/operators.xml:1.66 Wed May 5 16:19:50 2004 +++ phpdoc/en/language/operators.xml Mon May 24 19:32:50 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.66 $ --> +<!-- $Revision: 1.67 $ --> <chapter id="language.operators"> <title>Operators</title> <simpara> @@ -882,7 +882,10 @@ object is of a specified <link linkend="language.oop">object class</link>. </para> <simpara> - <literal>instanceof</literal> was introduced in PHP 5. + The <literal>instanceof</literal> operator was introduced in PHP 5. + Before this time <function>is_a</function> was used but + <function>is_a</function> has since been deprecated in favor of + <literal>instanceof</literal>. </simpara> <informalexample> <programlisting> @@ -903,11 +906,15 @@ ]]> </programlisting> <simpara> - As <literal>$thing</literal> is an object of type A, but not B, only the block - dependent on the A type will be executed: + As <literal>$thing</literal> is an <type>object</type> of type A, but + not B, only the block dependent on the A type will be executed: </simpara> <screen>A</screen> </informalexample> + <para> + See also <function>get_class</function> and + <function>is_a</function>. + </para> </sect1> </chapter>