2010-11-07 20 views

回答

22

substr_count($my_string, ",")

如果你想获得的所有逗号之间的所有元素作为一个数组,你可以随时$splitted = explode(",", $my_string)