title: foreach loop - if greater than count or else
body: <p>I have a foreach loop in php.</p>
  
  <p>When the loop is greater than 2 items I would like to display some text instead of the loop. Is this possible?</p>
  
  <p>For example: A loop of 2 or less items shows= item 1, item2</p>
  
  <p>The loop of more items shows the text = Mulitple items.</p>
  
  <p>The example code for indication:</p>
  
  <pre><code>$count++; 
  foreach($attValConfig as $attValConfigSingle) { 
  if ($attValConfigSingle["frontend_label"] == "LABELTEXT") { 
  echo ('&lt;div class="attributes_row"&gt;Text&lt;/div&gt;');
  
  foreach($attValConfigSingle['values'] as $attValConfigSingleVal) {
  
  if ($count++ &gt; 2)   { echo 'SomeNewText'; }
  else echo "&lt;option&gt;"list of items"&lt;/option&gt;";
  </code></pre>