Codice PHP:
for($i=0$i<1000$i++) {

   if(
$arresto_forzato=="si"){$i=1001;};
};