cvs: phpdoc-fa /reference/array/functions reset.xml

From: Date: Tue, 09 Jun 2009 16:26:06 +0000
Subject: cvs: phpdoc-fa /reference/array/functions reset.xml
Groups: php.doc.fa 
Request: Send a blank email to doc-fa+get-114@lists.php.net to get a copy of this message
psalehpoor Tue Jun 9 16:26:06 2009 UTC Added files: /phpdoc-fa/reference/array/functions reset.xml Log: translation to persian http://cvs.php.net/viewvc.cgi/phpdoc-fa/reference/array/functions/reset.xml?view=markup&rev=1.1 Index: phpdoc-fa/reference/array/functions/reset.xml +++ phpdoc-fa/reference/array/functions/reset.xml <?xml version="1.0" encoding="utf-8"?> <!-- EN-Revision: 1.17 Maintainer: pedram Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.reset" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>reset</refname> <refpurpose>اشاره‌گر داخلی یک آرایه را به اولین عضو آن قرار بده</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>reset</methodname> <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> </methodsynopsis> <para> <function>reset</function> اشاره‌گر داخلی <parameter>array</parameter> را به اولین عضو آرایه بازمی‌گرداند. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>array</parameter></term> <listitem> <para> آرایه ورودی. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> مقدار اولین عضو آرایه را بازمی‌گرداند و یا &false; اگر آرایه خالی باشد. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>مثال <function>reset</function></title> <programlisting role="php"> <![CDATA[ <?php $array = array('step one', 'step two', 'step three', 'step four'); // by default, the pointer is on the first element echo current($array) . "<br />\n"; // "step one" // skip two steps next($array); next($array); echo current($array) . "<br />\n"; // "step three" // reset pointer, start again on step one reset($array); echo current($array) . "<br />\n"; // "step one" ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>current</function></member> <member><function>each</function></member> <member><function>end</function></member> <member><function>next</function></member> <member><function>prev</function></member> </simplelist> </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 -->

« previous php.doc.fa (#114) next »