php while endwhile Syntax with "endwhile" used mostly in complex templates where easier to find "endwhile" than "}": <?php $i = 1; while ($i <= 10): echo $i++; endwhile; ?> Classic syntax: <?php $i = 1; while ($i <= 10) { echo $i++; } ?> VN:F [1.9.17_1161]Rating: +2 (from 2 votes)