PHP - Create Associative Array From .txt File
<p>I have .txt file formatted as such:</p>

<pre><code>    "id","dealer_id","vin","stockno",
    "1","2","3","4",
    "5","6","7","8",
    "9","10","11",12"
</code></pre>

<p>My goal is push this into an associative array like such:</p>

<pre><code>    "id"=&gt;"1", "dealer_id"=&gt;"2", "vin"=&gt;"3", "stockno"=&gt;"4"
</code></pre>

<p>My question is, the data loops through for every 4 entries. In the example above, I should have 3 arrays created like such:</p>

<pre><code>    "id"=&gt;"1", "dealer_id"=&gt;"2", "vin"=&gt;"3", "stockno"=&gt;"4"
    "id"=&gt;"5", "dealer_id"=&gt;"6", "vin"=&gt;"7", "stockno"=&gt;"8"
    "id"=&gt;"9", "dealer_id"=&gt;"10", "vin"=&gt;"11", "stockno"=&gt;"12"
</code></pre>

<p>How can I make this happen within PHP -- if possible at all?</p>