<html>
<body>
$x = 0;
while($x < 10) {
if ($x == 4) {
break;
}
echo "The number is: $x <br>";
$x++;
}
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_break_while by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:22:24 GMT -->
</html>