How to turn a PHP array into a multidimensional associative array : <p>I have an array that looks like this:</p>

<pre><code>Array (
[0]=&gt; 467:tv:59.99  
[1]=&gt; 387:radio:8.99 
[2]=&gt; 098:toaster:6.99
[3]=&gt; 732:laptop:109.99)
</code></pre>

<p>I want to create an associative array (add a key to every value). Each value is separated by a colon. For example, at index zero, the key and value pairs would be:</p>

<pre><code>[0] =&gt;
    id =&gt; 467
    product =&gt; tv
    price =&gt; 59.99
</code></pre>

<p>I was thinking of using a for each loop to loop through the array and split each index into a smaller chunk where the colons are. Additionally, would I use the list() function here?</p>

<p>I'm a little stuck on how to begin this process tbh so any tips and advice would be appreciated.</p>
