php分割字符串转为数组,数组添加元素 $a = "1-300";$b = explode("-",$a);print_r($b); $a=array("red","green"); array_push($a,"blue","yellow"); print_r($a);