假设你有一个字符串如下:
$str = 'one value, two value, "three, cool value", four value';
Run Code Online (Sandbox Code Playgroud)
你如何使它成为一个数组如下:
$arr = array('one value', 'two value', 'three, cool value', 'four value');
Run Code Online (Sandbox Code Playgroud)
(这都是关于CSV和包含逗号的值,因此是双引号.)