<?php /*php的内置函数array_values()重置数组信息,数据K值有0开始重新排列*/ $a=array("a"=>"Cat","b"=>"Dog","c"=>"Horse"); print_r(array_values($a)); // 输出: // Array ( [0] => Cat [1] => Dog [2] => Horse ) ?>
<?php /*php的内置函数array_values()重置数组信息,数据K值有0开始重新排列*/ $a=array("a"=>"Cat","b"=>"Dog","c"=>"Horse"); print_r(array_values($a)); // 输出: // Array ( [0] => Cat [1] => Dog [2] => Horse ) ?>