title: PHP Array explode single value
body: <p>I have an array with a single value collected from database.</p>
  
  <p>Within a while loop I wish to explode this for every two values.</p>
  
  <p>Example:</p>
  
  <pre><code>$data = array('20;40;60;80;100;150;200;300;500;1000');
  </code></pre>
  
  <p>I want to explode this value and end up with the following loop:</p>
  
  <pre><code>$lowprice = "20";
  $highprice = "40";
  </code></pre>
  
  <p>I couldn't find any examples of this.</p>
  
  <p><strong>Many thanks everyone who answered!</strong></p>