PHP range
1.函数的作用:生成范围内的数据
2.函数的参数:
@param mixed $start
@param mixed $end
@param mixed $step
3.例子:
1 <?php 2 $numbers = range(1,26); 3 foreach($numbers as $key => $number){ 4 $numbers[$key] = sprintf('%02d',$number); 5 } 6 var_dump($numbers);
学习记录,方便复习