使用 explode 分割字符串

list($a, $b) = explode(",", "zhu, hi");

结果为 $a = "zhu"

$b = "hi"

你可能感兴趣的:(Php)