PHP 函数 range() PHP 数组函数 previous() PHP 数组函数 reset() PHP 函数 range() <?php foreach (range(0, 6) as $number) { echo "$number, "; } print "\n"; foreach (range(0, 100, 10) as $number) { echo "$number, "; } print "\n"; foreach (range('a', 'c') as $letter) { echo "$letter, "; } print "\n"; foreach (range('f', 'a') as $letter) { echo "$letter, "; } print "\n"; ?> PHP 数组函数 previous() PHP 数组函数 reset()