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:
Andrei Zmievski 2001-02-20 14:23:56 +00:00
parent e17bafd417
commit 6069fc342e

View file

@ -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>