php字符串问题

Khu*_*jaz 0 php arrays string

嗨我有一个包含值的字符串,即Acton $ 80 Ajax $ 80 Aldershot $ 80 Alliston $ 115 Alton $ 80 Aldershot $ 84 Alexandria $ 674

我想制作Acton Ajax等等.

请帮忙

Ksh*_*ire 6

试试这个

 explode(" ",$urStringVar)
Run Code Online (Sandbox Code Playgroud)

explode将返回数组

祝好运