相关疑难解决方法(0)

用空格分割字符串

如何通过白色空间分割字符串无论白色空间有多长?

例如,从以下字符串:

"the    quick brown   fox        jumps   over  the lazy   dog"
Run Code Online (Sandbox Code Playgroud)

我会得到一个数组

['the', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog'];
Run Code Online (Sandbox Code Playgroud)

php regex

1
推荐指数
1
解决办法
3927
查看次数

标签 统计

php ×1

regex ×1