senza paroleanzi NO, GRAZIE
![]()
ho così evitato qualche if then e non è poco...
![]()
Per chi si volesse dilettare
Codice PHP:$mesi = array("01","02","03","04","05","06","07","08","09","10","11","12");
foreach ($mesi as $m){
$next = sprintf("%1$02d", 1+($m)%12);
$prec = sprintf("%1$02d", 1+($m+10)%12);
echo '
precedente: '.$prec;
echo '
[b]mese corrente: '.$m.'[/b]';
echo '
successivo: '.$next.'
';
}

anzi NO, GRAZIE
Rispondi quotando