日期:2014-05-17 浏览次数:20453 次
<?php $str = "1,2,3,4,5,6"; $a = explode(',',$str); $b = Array(); foreach($a as $key=>$val){ $b[$key+1] = $val; } print_r($a); print_r($b); ?>