cvs: phpdoc-hu /reference/array/functions current.xml

From: Date: Fri, 13 Feb 2004 18:16:01 +0000
Subject: cvs: phpdoc-hu /reference/array/functions current.xml
Groups: php.doc.hu 
Request: Send a blank email to doc-hu+get-448@lists.php.net to get a copy of this message
cece Fri Feb 13 13:16:01 2004 EDT Modified files: /phpdoc-hu/reference/array/functions current.xml Log: sync... http://cvs.php.net/diff.php/phpdoc-hu/reference/array/functions/current.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-hu/reference/array/functions/current.xml diff -u phpdoc-hu/reference/array/functions/current.xml:1.3 phpdoc-hu/reference/array/functions/current.xml:1.4 --- phpdoc-hu/reference/array/functions/current.xml:1.3 Wed Aug 14 12:56:19 2002 +++ phpdoc-hu/reference/array/functions/current.xml Fri Feb 13 13:16:01 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-2"?> <!-- splitted from ./hu/functions/array.xml, last change in rev 1.3 --> <!-- last change to 'current' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.4 Maintainer: gerzson Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: gerzson Status: ready --> <!-- OLD-Revision: 1.173/EN.1.2 --> <refentry id="function.current"> <refnamediv> @@ -20,7 +20,7 @@ </para> <para> A <function>current</function> függvény egyszerûen visszaadja - a belsõ mutató által megjelölt tömbelemet. A mutató soha nem + a belsõ mutató által megjelölt tömbelem értékét. A mutató soha nem mozdul el errõl az elemrõl. Ha a belsõ mutató az elemlista vége mögé mutat, akkor <function>current</function> függvény &false;-ot ad vissza. @@ -36,8 +36,27 @@ </warning> </para> <para> - Lásd még: <function>end</function>, <function>next</function>, - <function>prev</function> és <function>reset</function>! + <example> + <title>Example use of <function>current</function> and friends</title> + <programlisting role="php"> +<![CDATA[ +<?php +$transport = array('foot', 'bike', 'car', 'plane'); +$mode = current($transport); // $mode = 'foot'; +$mode = next($transport); // $mode = 'bike'; +$mode = current($transport); // $mode = 'bike'; +$mode = prev($transport); // $mode = 'foot'; +$mode = end($transport); // $mode = 'plane'; +$mode = current($transport); // $mode = 'plane'; +?> +]]> + </programlisting> + </example> + </para> + <para> + Lásd még: <function>end</function>, <function>key</function>, + <function>next</function>, <function>prev</function> és + <function>reset</function>! </para> </refsect1> </refentry>

« previous php.doc.hu (#448) next »