如何将参数列表样式字符串转换为PHP中的参数数组?

时间:2014-08-23 21:05:20

标签: php

我想转换这样的字符串:

Zeroth "First" "Sec ond" "Th\"ird" Four th Six'th 'Seventh'

到阵列:

[0] => Zeroth
[1] => First
[2] => Sec ond
[3] => Thi"ird
[4] => Four
[5] => th
[6] => Six'th
[7] => 'Seventh'

功能应该很快并且只处理双引号。

0 个答案:

没有答案