title: how to manipulate an array
body: <p>So, I have this array:</p>
  
  <pre><code>Array ( [idservice] =&gt; 3 [level0] =&gt; 0.35 ) Array ( [idservice] =&gt; 3 [level0] =&gt;
  0.35 ) Array ( [idservice] =&gt; 2 [level0] =&gt; 6.00 ) Array ( [idservice] =&gt; 2 [level0]
  =&gt; 6.00 ) Array ( [idservice] =&gt; 100 [level0] =&gt; 20.00 ) Array ( [idservice] =&gt; 100 
  [level0] =&gt; 20.00 )
  </code></pre>
  
  <p>i need to make the 3 as a variable add a prefix to it to make it $id_3 and set the level0 as the value of the variable, like this</p>
  
  <pre><code>$id_3 = 0.35
  </code></pre>
  
  <p>and I have to do this for all the arrays, so that in the end I would have :</p>
  
  <pre><code>$id_3   = 0.35
  $id_2   = 2.00
  $id_100 = 6.00
  </code></pre>
  
  <p>is that at all possible?
  <code>o</code> and <code>i</code> need <code>foreach</code> kind of statement so that, I can get all the variables at one time.</p>