<?php
function test($a){
$sum=0;
for($i=1;$i<=$a;$i++){
$sum +=$i;
}
return $sum;
echo test(100);
?>
如题。。