Display text within while loop only on the first loop Oct 23, 2013 by Christine Cardoso in Code Snippets 681 <?php $i = 0; while(conditionals...) { if (!$i++) echo "Show once."; $i++; } ?> 123456789 <?php$i = 0;while(conditionals...) { if (!$i++) echo "Show once."; $i++;}?> Share this:GoogleTwitterPinterestPrintEmail