Fixed PHP bug #51520 (strict-parameter of array_search() and object-identity)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297745 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Egeberg 2010-04-09 14:04:21 +00:00
parent 2ae9051669
commit 01adf8724e

View file

@ -48,9 +48,12 @@
<listitem>
<para>
If the third parameter <parameter>strict</parameter> is set to &true;
then the <function>array_search</function> function will also check the
then the <function>array_search</function> function will search for
<emphasis>identical</emphasis> elements in the
<parameter>haystack</parameters>. This means it will also check the
<link linkend="language.types">types</link> of the
<parameter>needle</parameter> in the <parameter>haystack</parameter>.
<parameter>needle</parameter> in the <parameter>haystack</parameter>,
and objects must be the same instance.
</para>
</listitem>
</varlistentry>