$x = 0; while($x < 10) { if ($x == 4) { break; } echo "The number is: $x
"; $x++; }