第一个字符
$newstr = substr($str,0,strlen($str)-1);
取得数组的具体数据
$date = "04,30";
list($month, $day) = split...('[,.-]', $date);
echo "Month: $month; Day: $day;<br / \n";
去除数组中重复的元素值 array_unique()
<meta charset...script language="javascript"
str="2,2,3,5,6,6"; //这是一字符串
var strs= new Array(); //定义一数组
strs=str.split