- key: documentation ( source)
- next: documentation ( source)
- current: documentation ( source)
<?php
$valori_modalita_pagamento=array(1=>'Valore 1',2=>'Valore 2', 3=>'Valore 3',5=>'Valore N' ); //array associativo con coppie chiave/valore
while (current($valori_modalita_pagamento)) {
echo key($valori_modalita_pagamento);
next($valori_modalita_pagamento);
}