Split string by delimiter ignoring delimiter inside quotes
<p>string from the file i'm importing: <code>1,2,3,"a","b","c","1,2,3,4,5",6,7</code></p>

<p>desired output would be an array split by the comma but ignoring any comma that falls between double quotes.</p>

<pre><code>[0] = 1;
[1] = 2;
[2] = 3;
[4] = "a";
[5] = "b";
[6] = "c";
[7] = "1,2,3,4,5";
[8] = 6;
[9] = 7;
</code></pre>

<p>Needs to work with PHP 5.2 and below. I know the fget_csv function allows for this in PHP 5.3 but its not an option unfortunately. </p>

<p>Searched fairly extensively and so far no solutions for this that I can find. Any ideas?</p>
