Codice PHP:
$a0;

while (
$a != ) {

$a++;
echo 
"$a
\n"
;
$b[]= $a;


}
echo 
"totale = " array_sum($b) . "\n"