如何将字符串拆分为单词和符号组合数组

Koo*_*bin 5 php regex split

我把句子分成如下的单词:
例如:

This is a test from php, python, asp and also from other languages. Alash! i cannot get my output as followings.  
Run Code Online (Sandbox Code Playgroud)

结果:

array(  
[0]=>"This",  
[1]=>"is",  
[2]=>"a",  
[3]=>"test",  
[4]=>"from",  
[5]=>"php",  
[6]=>",",  
[7]=>"python",  
[8]=>",",  
[9]=>"asp",  
[10]=>"and",  
[11]=>"also",  
[12]=>"from",  
[13]=>"other",  
[14]=>"languages",  
[15]=>".",  
[16]=>"Alash",  
[17]=>"!",  
[18]=>"I",  
[19]=>"cannot",  
[20]=>"get",  
...  
)  
Run Code Online (Sandbox Code Playgroud)

什么可以成为我的PHP选择?

Qta*_*tax 2

尝试类似的方法:

preg_split('/\s+|\b/', $string)
Run Code Online (Sandbox Code Playgroud)