如何分解这个数组值:
$row = array(
[0] = 1,1,Carlyle,Rogers,1,"Carlyle, Rogers",0000-00-00,,[email protected],,non premium)
我试过这个代码
$values = explode(',', $row[0]);
并给我这个错误的输出:
Array (
[0] => 1
[1] => 1
[2] => Carlyle
[3] => Rogers
[4] => 1
[5] => "Carlyle
[6] => Rogers"
[7] => 0000-00-00
[8] =>
[9] => [email protected]
[10] =>
[11] => non premium
)
我想要的是输出必须是这样的:
Array (
[0] => 1
[1] => 1
[2] => Carlyle
[3] => Rogers
[4] => 1
[5] => "Carlyle, Rogers"
[6] => 0000-00-00
[7] =>
[8] => [email protected]
[9] =>
[10] => non premium
)