mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
So if this is array_key_exists, move this up to
the right place in alphabetical order... git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@62401 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cd2cf0e130
commit
96517be5da
1 changed files with 38 additions and 38 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.118 $ -->
|
||||
<!-- $Revision: 1.119 $ -->
|
||||
<reference id="ref.array">
|
||||
<title>Array Functions</title>
|
||||
<titleabbrev>Arrays</titleabbrev>
|
||||
|
@ -570,6 +570,43 @@ $result = array_intersect ($array1, $array2);
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.array-key-exists">
|
||||
<refnamediv>
|
||||
<refname>array_key_exists</refname>
|
||||
<refpurpose>Checks if the given key or index exists in the array</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>bool <function>array_key_exists</function></funcdef>
|
||||
<paramdef>mixed <parameter>key</parameter></paramdef>
|
||||
<paramdef>array <parameter>search</parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
<function>array_key_exists</function> returns &true; if the
|
||||
given <parameter>key</parameter> is set in the array.
|
||||
<parameter>key</parameter> can be any value possible
|
||||
for an array index.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>array_key_exists</function> example</title>
|
||||
<programlisting role="php">
|
||||
$search_array = array("first" => 1, "second" => 4);
|
||||
if (array_key_exists("first", $search_array)) {
|
||||
echo "The 'first' element is in the array";
|
||||
}
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>isset</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.array-keys">
|
||||
<refnamediv>
|
||||
<refname>array_keys</refname>
|
||||
|
@ -2555,43 +2592,6 @@ if (in_array(1.13, $a, TRUE))
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.array-key-exists">
|
||||
<refnamediv>
|
||||
<refname>array_key_exists</refname>
|
||||
<refpurpose>Checks if the given key or index exists in the array</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>bool <function>array_key_exists</function></funcdef>
|
||||
<paramdef>mixed <parameter>key</parameter></paramdef>
|
||||
<paramdef>array <parameter>search</parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
<function>array_key_exists</function> returns &true; if the
|
||||
given <parameter>key</parameter> is set in the array.
|
||||
<parameter>key</parameter> can be any value possible
|
||||
for an array index.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>array_key_exists</function> example</title>
|
||||
<programlisting role="php">
|
||||
$search_array = array("first" => 1, "second" => 4);
|
||||
if (array_key_exists("first", $search_array)) {
|
||||
echo "The 'first' element is in the array";
|
||||
}
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>isset</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.krsort">
|
||||
<refnamediv>
|
||||
<refname>krsort</refname>
|
||||
|
|
Loading…
Reference in a new issue