$numbers = range(1, 10); //生成包含1到10的数组
$evenNumbers = range(2, 10, 2); //生成包含2到10的偶数数组
$numbers = range(10, 1); //生成包含10到1的递减数组
$letters = range('a', 'z'); //生成包含a到z的字母数组
$chars = range('A', 'Z'); //生成包含A到Z的字符数组
$chars = range('a', 'z'); //生成包含a到z的字符数组
$numbers = range(1, 5);
$string = implode(',', $numbers); //将数组转换成逗号分隔的字符串输出:1,2,3,4,5
$assocArray = array_combine(range('a', 'e'), range(1, 5)); //生成包含键值对的数组,键为a到e,值为1到5