1
0
mirror of https://github.com/php/doc-it.git synced 2026-03-26 08:32:15 +01:00
Files
archived-doc-it/reference/array/functions/current.xml
Marco Cucinato 0647a8ee83 Sync with EN tree
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@123993 c90b9560-bf6c-de11-be94-00142212c4b1
2003-04-19 17:19:47 +00:00

68 lines
2.3 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/array.xml, last change in rev 1.1 -->
<!-- last change to 'current' in en/ tree in rev 1.2 -->
<!-- EN-Revision: 1.6 Maintainer: cucinato Status: ready -->
<!-- OLD-Revision: 1.173/EN.1.2 -->
<refentry id="function.current">
<refnamediv>
<refname>current</refname>
<refpurpose>Restituisce l'elemento corrente di un array</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
<type>mixed</type><methodname>current</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
</methodsynopsis>
<para>
Ogni array ha un puntatore interno all'elemento "corrente",
che &egrave; inizializzato al primo elemento inserito
nell'array.
</para>
<para>
La funzione <function>current</function> restituisce
l'elemento che &egrave; attualmente puntato dal puntatore
interno. In ogni caso non muove il puntatore. Se il
puntatore interno punta oltre la fine della lista di elementi,
<function>current</function> restituisce &false;.
<warning>
<para>
Se l'array contiene elementi vuoti (0 o "", la stringa
vuota) la funzione restituir&agrave; &false;
pure per questi elementi. Questo rende impossibile
stabilire se si &egrave; veramente alla fine della lista in un
array di questo tipo usando <function>current</function>. Per attraversare
in modo corretto un array che pu&ograve; contenere elementi vuoti, usare la
funzione <function>each</function>.
</para>
</warning>
</para>
<para>
Vedere anche <function>end</function>, <function>key</function>,
<function>next</function>, <function>prev</function> e
<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
-->