日期:2014-05-17 浏览次数:20540 次
$s = "*id=3,express_no=25,ename=quanri,*id=4,express_no=17,ename=kuaidi,"; $t = array(); foreach(explode('*', $s) as $v) { if(empty($v)) continue; parse_str(str_replace(',', '&', $v), $t); $r[] = $t; } print_r($r);