1
0
mirror of https://github.com/php/doc-pl.git synced 2026-03-31 11:32:31 +02:00
Files
archived-doc-pl/reference/array/functions/reset.xml
Hannes Magnusson 038a51478c Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there
 - Bump EN-Revision where appropriate


git-svn-id: https://svn.php.net/repository/phpdoc/pl/trunk@238334 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-23 13:29:36 +00:00

74 lines
2.0 KiB
XML

<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.16 Maintainer: leszek Status: ready -->
<!-- $Revision: 1.8 $ -->
<refentry xml:id="function.reset" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>reset</refname>
<refpurpose>Ustaw wewnêtrzny wska¼nik tablicy na jej pierwszy element</refpurpose>
</refnamediv>
<refsect1>
<title>Opis</title>
<methodsynopsis>
<type>mixed</type><methodname>reset</methodname>
<methodparam><type>array</type><parameter role="reference">tablica</parameter></methodparam>
</methodsynopsis>
<para>
<function>reset</function> przewija wewnêtrzny wska¼nik tablicy parametru
<parameter>tablica</parameter> na jego pierwszy element i zwraca jego
warto¶æ, lub &false; je¶li tablica jest pusta.
</para>
<para>
<example>
<title>Przyk³ad u¿ycia funkcji <function>reset</function></title>
<programlisting role="php">
<![CDATA[
<?php
$tablica = array('krok pierwszy', 'krok drugi', 'krok trzeci', 'krok czwarty');
// domy¶lnie, wska¿nik jest na pierwszym elemencie
echo current($tablica) . "<br />\n"; // "krok pierwszy"
// przeskocz dwa kroki
next($tablica);
next($tablica);
echo current($tablica) . "<br />\n"; // "krok trzeci"
// zresetuj wska¼nik, zacznik od nowa na pierwszym kroku
reset($tablica);
echo current($tablica) . "<br />\n"; // "krok pierwszy"
?>
]]>
</programlisting>
</example>
</para>
<para>
Patrz tak¿e: <function>current</function>,
<function>each</function>, <function>end</function>
<function>next</function> i <function>prev</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
-->