title: Split a comma-delimited string (containing values which also contain commas)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3264775/an-explode-function-that-ignores-characters-inside-quotes">An explode() function that ignores characters inside quotes?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a sample problem. here is is</p>
  
  <pre><code>$str = 'field0,field1,field2,"field3a,field3b,field3c",field4,"field5"';
  </code></pre>
  
  <p>I want explode that string to array like this</p>
  
  <pre><code>$arr[0] = 'field0';
  $arr[1] = 'field1';
  $arr[2] = 'field2';
  $arr[3] = 'field3a,field3b,field3c';
  $arr[4] = 'field4';
  $arr[5] = 'field5';
  </code></pre>