title: Interrupting foreach loop to add additional text
body: <p>I'm trying to figure out how to place additional text at a specific point inside of a foreach loop, so the output of my php would be:</p>
  
  <p>Alabama Alaska Arizona Arkansas <strong>SomeNewText</strong> 
  California Colorado Connecticut etc etc etc</p>
  
  <p>continue; and break; don't seem to work in this case. I <strong>don't</strong> want to stop/quit the foreach loop.</p>
  
  <pre><code>&lt;?php
  
  $items = array("Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Dist of Columbia", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming");
  
  
  $count = 0;
  
  foreach ($items as $item) 
  {
  
  if ($count == 3)
  {
  echo 'SomeNewText';
  }
  
  echo $item;
  echo "\n";
  
  $count++;
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>Any ideas?  Thx.</p>