mirror of
https://github.com/php/doc-pl.git
synced 2026-03-29 18:42:06 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/pl/trunk@82551 c90b9560-bf6c-de11-be94-00142212c4b1
63 lines
2.0 KiB
XML
63 lines
2.0 KiB
XML
<?xml version="1.0" encoding="iso-8859-2"?>
|
|
<!-- EN-Revision: 1.4 Maintainer: leszek Status: ready -->
|
|
<!-- $Revision: 1.4 $ -->
|
|
<refentry id="function.current">
|
|
<refnamediv>
|
|
<refname>current</refname>
|
|
<refpurpose>Zwraca bie¿±cy element tablicy</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Opis</title>
|
|
<methodsynopsis>
|
|
<type>mixed</type><methodname>current</methodname>
|
|
<methodparam><type>array</type><parameter>tablica</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Ka¿da tablica ma wewnêtrzny wska¼nik bo swojego "bie¿±cego" elementu,
|
|
który jest inicjalizowany do pierwszego elementu wstawionego do
|
|
tablicy.
|
|
</para>
|
|
<para>
|
|
Funkcja <function>current</function> po prostu zwraca element tablicy,
|
|
na który aktualnie wskazuje wewnêtrzny wska¼nik. Nie przesuwa ona
|
|
wska¼nika. Je¶li wewnêtrzny wska¼nik jest poza koñcem listy elementów,
|
|
<function>current</function> zwraca &false;.
|
|
<warning>
|
|
<para>
|
|
Je¶li tablica zawiera puste elementy (0 lub "", czyli pusty string),
|
|
to funkcja zwróci &false; tak¿e dla tych elementów. Przez to nie jest
|
|
mo¿liwe stwierdzenie, czy jeste¶ ju¿ poza tablic±, u¿ywaj±c funkcji
|
|
<function>current</function>. Aby prawid³owo przej¶æ przez tablicê
|
|
która zwiera puste elementy, skorzystaj z funkcji
|
|
<function>each</function>.
|
|
</para>
|
|
</warning>
|
|
</para>
|
|
<para>
|
|
Patrz tak¿e: <function>end</function>, <function>next</function>,
|
|
<function>prev</function> i <function>reset</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
|
|
-->
|