title: PHP Looping through each item on a one dimensional array
body: <p>If I have array like this myarray[0]['field1','field2','field3'];</p>
  
  <p>I know its basically one row and has nothing to loop through, but i need it to loop through the values rather than the whole array.  In this case it would need to loop 3x but if there were 10 fields, it should loop 10x.  </p>
  
  <p>I've been doing this but it feels too complicated for something so simple.  Is there a function that is eluding me on google for this?</p>
  
  <pre><code>foreach (myarray[0][field1] as $item){
   //do something
  }
  foreach (myarray[0][field2] as $item){
   //do something
  }
  foreach (myarray[0][field3] as $item){
   //do something
  }
  </code></pre>