array elements separated by ',',and str_replace();?
<p>I have an source data separated by <code>,</code> but some cases in the its elements contains <code>,</code></p>

<pre><code>$A = Array
  (
    [0] =&gt; Array
        (
            [0] =&gt; ",123, abc , company , Inc., 3043, 200, USD",// [123], [abc] , [company , Inc.], [3043], [200], [USD]
            [1] =&gt; ",456, def , company,Inc., 3043, 200, USD"
        )

  ) 
</code></pre>

<p>By could not change the data source.( company , Inc., is always <code>fixed array orders</code> )</p>

<pre><code>foreach ($A as $key=&gt;$value){

  foreach($value as $k=&gt;$v){
       $line  =  str_replace(',', ';', $v);
       $row = explode(',', $line);
      list($a, $b, $c, $d, $e, $f) = $row;

  }
}
</code></pre>

<p>EDIT:</p>

<p>RULE:</p>

<p>yes , the order of <code>company , Inc</code> always fixed and the number of <code>,</code> always 6 </p>
