title: get an array for each year
body: <p>DB table holds numeric data, 12 set (jan-dec) for each year.
  I need an array with all data for each year...<br></p>
  
  <p>example of DB "web_table"<br></p>
  
  <pre><code>2009 jan 10
  2009 feb 66
  ...
  2015 jan 99
  </code></pre>
  
  <p>I need to use the output array in Highchart series. One array for each year.</p>
  
  <pre><code>series: [{
      name: '2009',
      type: 'spline',
      data: [&lt;?php echo $the_array_for_2009;?&gt;] //outcome: data: [10,66,..,..]
  },{
      name: '2010',
      ..etc..
  </code></pre>
  
  <p>Today i'm querying each and every year with is very undynamic:</p>
  
  <pre><code>$str2009 = "SELECT * FROM web_table WHERE year = 2009";
  ... (etc)
  $str2015 = "SELECT * FROM web_table WHERE year = 2015";
  </code></pre>
  
  <p><br>
  Help me with a foreach() and loop the whole "series settings" solution or any other suggestions?</p>