title: How would I stop this foreach loop after 3 iterations?
body: <p>Here is the loop.</p>
  
  <pre><code>foreach($results-&gt;results as $result){
      echo '&lt;div id="twitter_status"&gt;';
      echo '&lt;img src="'.$result-&gt;profile_image_url.'" class="twitter_image"&gt;';
      $text_n = $result-&gt;text; 
      echo "&lt;div id='text_twit'&gt;".$text_n."&lt;/div&gt;";
      echo '&lt;div id="twitter_small"&gt;';
      echo "&lt;span id='link_user'".'&lt;a href="http://www.twitter.com/'.$result-&gt;from_user.'"&gt;'.$result-&gt;from_user.'&lt;/a&gt;&lt;/span&gt;';
      $date = $result-&gt;created_at;
  
      $dateFormat = new DateIntervalFormat();
  
      $time = strtotime($result-&gt;created_at);
  
      echo "&lt;div class='time'&gt;";
  
      print sprintf('Submitted %s ago',  $dateFormat-&gt;getInterval($time));
  
      echo '&lt;/div&gt;';
  
      echo "&lt;/div&gt;";
      echo "&lt;/div&gt;";
  </code></pre>