title: my php array only displays one element
body: <p>im trying to get the element 'message' from array but only get a return of 1 element.
  however if I echo the array from the 'foreach' loop it displays all the messages but if I just echo the following:</p>
  
  <p>this is what it outputs:</p>
  
  <p>'message here'</p>
  
  <p>2014-03-25 22:38:46</p>
  
  <p>'number here'</p>
  
  <p>'message here'</p>
  
  <p>2014-03-25 22:38:46</p>
  
  <p>'number here'</p>
  
  <p>'message here'</p>
  
  <p>2014-03-25 22:38:46</p>
  
  <p>'number here'</p>
  
  <p>I get the following response:</p>
  
  <p>'message here'</p>
  
  <p>2014-03-25 22:38:46</p>
  
  <p>'number here'</p>
  
  <p>only the latest message appears, I know for fact the problem lies because I donot physically have a array, as im retrieving data from another source, but im really trying to display only the first 2 or three messages I cannot run an array like normal, how can I write up a solution to get only 2 messages </p>