Assuming you have a line like this:
$str = 'one value, two value, "three, cool value", four value';
How would you make an array like this:
$arr = array('one value', 'two value', 'three, cool value', 'four value');
(All about CSV and values containing a comma and thus double quotes).
source
share