<?php
$min=1; #起始$max=10;#最大
$data=range($min,$max);$count=count($data);$res=0;for($i=0;$i<$count;$i++){ $res+=$data[$i];}echo $res,'<hr>';
?>