Hyvor Developer
  Home   Download   Copy
Code
<?php
for ($a = 0; $a < 10; $a++) {
	echo "$";
	for ($b = 0; $b < 10; $b++) {
		if ($a === 3 && $b === 5) {
			echo '<br> Breaking two loops';
			break 2;
		}
		echo $b;
	}
	echo '<br>';
}
Result