mirror of
https://github.com/php/doc-ru.git
synced 2025-08-11 02:43:11 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@94745 c90b9560-bf6c-de11-be94-00142212c4b1
67 lines
2.1 KiB
XML
67 lines
2.1 KiB
XML
<?xml version="1.0" encoding="windows-1251"?>
|
|
<!-- EN-Revision: 1.5 Maintainer: tronic Status: ready -->
|
|
<!-- $Revision: 1.2 $ -->
|
|
<!-- splitted from ./en/functions/array.xml, last change in rev 1.119 -->
|
|
<refentry id="function.array-key-exists">
|
|
<refnamediv>
|
|
<refname>array_key_exists</refname>
|
|
<refpurpose>Ïðîâåðèòü, ïðèñóòñòâóåò ëè â ìàññèâå óêàçàííûé êëþ÷ èëè èíäåêñ</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Îïèñàíèå</title>
|
|
<methodsynopsis>
|
|
<type>ëîãè÷åñêîå</type><methodname>array_key_exists</methodname>
|
|
<methodparam><type>ñìåøàííîå</type><parameter>êëþ÷</parameter></methodparam>
|
|
<methodparam><type>ìàññèâ</type><parameter>èñõîäíûé_ìàññèâ</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Ôóíêöèÿ <function>array_key_exists</function> âîçâðàùàåò &true;, åñëè
|
|
â ìàññèâå ïðèñóòñòâóåò óêàçàííîå çíà÷åíèå <parameter>êëþ÷</parameter>.
|
|
Ïàðàìåòð <parameter>êëþ÷</parameter> ìîæåò áûòü ëþáûì çíà÷åíèåì,
|
|
êîòîðîå ïîäõîäèò äëÿ îïèñàíèÿ èíäåêñà ìàññèâà.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Ïðèìåð èñïîëüçîâàíèÿ <function>array_key_exists</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
$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>
|
|
<note>
|
|
<simpara>
|
|
 PHP âåðñèè 4.0.6 íàçâàíèå ýòîé ôóíêöèè - <function>key_exists</function>.
|
|
</simpara>
|
|
</note>
|
|
<para>
|
|
Ñì.òàêæå <function>isset</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|