<?php $a = 0; while ($a < 10) { if ($a === 5) { $a++; continue; // 5 is not printed } echo $a . '<br>'; $a++; }