mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
Rename to array_search().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@41554 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e17bafd417
commit
6069fc342e
1 changed files with 5 additions and 5 deletions
|
@ -1821,14 +1821,14 @@ if (in_array(1.13, $a, TRUE))
|
|||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>search_array</function>.
|
||||
See also <function>array_search</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.search-array">
|
||||
<refentry id="function.array-search">
|
||||
<refnamediv>
|
||||
<refname>search_array</refname>
|
||||
<refname>array_search</refname>
|
||||
<refpurpose>
|
||||
Searches the array for a given value and returns the corresponding key if successful
|
||||
</refpurpose>
|
||||
|
@ -1837,7 +1837,7 @@ if (in_array(1.13, $a, TRUE))
|
|||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>mixed <function>search_array</function></funcdef>
|
||||
<funcdef>mixed <function>array_search</function></funcdef>
|
||||
<paramdef>mixed <parameter>needle</parameter></paramdef>
|
||||
<paramdef>array <parameter>haystack</parameter></paramdef>
|
||||
<paramdef>bool <parameter>strict</parameter></paramdef>
|
||||
|
@ -1850,7 +1850,7 @@ if (in_array(1.13, $a, TRUE))
|
|||
</para>
|
||||
<para>
|
||||
If the third parameter <parameter>strict</parameter> is set to
|
||||
<literal>TRUE</literal> then the <function>search_array</function>
|
||||
<literal>TRUE</literal> then the <function>array_search</function>
|
||||
will also check the types of the <parameter>needle</parameter>
|
||||
in the <parameter>haystack</parameter>.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue