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