mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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
This commit is contained in:
parent
900526976c
commit
a7a0ce13e3
1 changed files with 5 additions and 4 deletions
|
@ -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 @@ var_dump($a === $b); // bool(false)
|
|||
<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.
|
||||
|
|
Loading…
Reference in a new issue