php
//利用 explode 函数分割字符串到数组
$source = "hello1,hello2,hello3,hello4,hello5";//按逗号分离字符串
$hello = explode...第一个字符
$newstr = substr($str,0,strlen($str)-1);
取得数组的具体数据
$date = "04,30";
list($month, $day) = split...php
$a1="206,206,206,201,206,201";
//$array = explode(',', $a1); //字符串组成数组
$array1=implode(",",array_unique...php
$a=array("a"= "Cat","b"= "Dog","c"= "Horse");
print_r(array_values($a));
// 输出:
// Array...script language="javascript"
str="2,2,3,5,6,6"; //这是一字符串
var strs= new Array(); //定义一数组
strs=str.split