php把字符串指定字符分割成数组的方法 实例如下:<?php$str="1|2|3|4|5|";$var=explode("|",$str);print_r($var);?>$var=explode("|",$str);把$st 字符串分割数组