Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 按大写字母拆分单词
如何使用大写字母规则转换一个数组中的一个字符串?前任:
$string = "蒂姆伯顿";
$array[0] = "蒂姆";
$array[1] = "伯顿";
$array = preg_split('/(?=[A-Z])/', $string);
在此处查看实际操作:http ://codepad.viper-7.com/0E2DqO