数组,可以说是PHP的数据应用中较重要的一种方式。PHP的数组函数众多,下面是我学习的小结,借此记之,便于以后鉴之。...PHP
$number = "1,3,5,7,9";
$string = "I'm PHPer";
$array = array("And","You?")...PHP
$number = array("1","3","5","7","9");
$array = array("I","Am","A","PHP","er");
$newArray...运行结果:
Array ( [1] => I [3] => Am [5] => A [7] => PHP [9] => er )
range()
range()函数——创建指定范围的数组:
<?...PHP
$array1 = range(0,100,10);//0为起始值,100为结束值,10为步进值(默认步进值为1).