mirror of
https://github.com/php/doc-pl.git
synced 2026-03-29 10:32:12 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/pl/trunk@82551 c90b9560-bf6c-de11-be94-00142212c4b1
68 lines
1.9 KiB
XML
68 lines
1.9 KiB
XML
<?xml version="1.0" encoding="iso-8859-2"?>
|
|
<!-- EN-Revision: 1.4 Maintainer: leszek Status: ready -->
|
|
<!-- $Revision: 1.4 $ -->
|
|
<refentry id="function.array-key-exists">
|
|
<refnamediv>
|
|
<refname>array_key_exists</refname>
|
|
<refpurpose>
|
|
Sprawdza czy podany klucz lub indeks istnieje w tablicy
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>array_key_exists</methodname>
|
|
<methodparam><type>mixed</type><parameter>ig³a</parameter></methodparam>
|
|
<methodparam><type>array</type><parameter>stóg_siana</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>array_key_exists</function> zwraca &true; je¶li
|
|
<parameter>ig³a</parameter> jest ustawiona w tablicy
|
|
<parameter>stóg_siana</parameter>. <parameter>ig³a</parameter> mo¿e byæ
|
|
dowoln± warto¶ci± mo¿liw± dla indksu tablicy.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title><function>array_key_exists</function> example</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
$stog_siana = array("pierwszy" => 1, "drugi" => 4);
|
|
if (array_key_exists("pierwszy", $stog_siana)) {
|
|
echo "'Pierwszy' element istnieje w tablicy";
|
|
}
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<note>
|
|
<simpara>
|
|
W PHP 4.0.6 ta funkcja nazywa siê <function>key_exists</function>.
|
|
</simpara>
|
|
</note>
|
|
<para>
|
|
Patrz tak¿e: <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
|
|
-->
|