<?php for ($num = 1, $num <= 5, $num++) { echo $num.'<br />'; if ($num == 3) { die("Aquí nos salimos"); } }?>