2010-11-07 50 views

回答

22

substr_count($my_string, ",")

如果你想獲得的所有逗號之間的所有元素作爲一個數組,你可以隨時$splitted = explode(",", $my_string)