title: PHP: turn array values into string variables
body: <p>I have a super simple array that I need to turn into individual string/integer variables. Eg:</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [0] =&gt; 35 [1] =&gt; 507 [2] =&gt; 203 ) ) 
  </code></pre>
  
  <p>Should result in</p>
  
  <pre><code>$value1 = 35
  $value2 = 507
  $value3 = 203
  </code></pre>
  
  <p>I'm sure this is pretty simple but I've looked at implode and it seems to concatenate the arrays into a single string, whereas I need each value as a separate variable. Have also tried foreach but come unstuck. Anyone know how to do this?</p>
  
  <p>I can't seem to use $array[0][0] (=35) as I'm putting these variables into a MySQLi query and keep getting errors when I do it this way.</p>
  
  <p>Thanks!</p>