mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed #54574 - clarified that in_array uses loose comparison by default
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310392 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d4482ec29d
commit
a59197ab9f
1 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
<refentry xml:id="function.in-array" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>in_array</refname>
|
||||
<refpurpose>Checks if a value exists in an array</refpurpose>
|
||||
<refpurpose>Checks if a value exists in an array using loose comparison if </refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
|
@ -11,10 +11,11 @@
|
|||
<type>bool</type><methodname>in_array</methodname>
|
||||
<methodparam><type>mixed</type><parameter>needle</parameter></methodparam>
|
||||
<methodparam><type>array</type><parameter>haystack</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>strict</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>strict</parameter><initializer>&false;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Searches <parameter>haystack</parameter> for <parameter>needle</parameter>.
|
||||
Searches <parameter>haystack</parameter> for <parameter>needle</parameter> using loose comparison
|
||||
unless <parameter>strict</parameter> is set.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
|
|
Loading…
Reference in a new issue