<?php

$i=0;

foreach(range(0, 10) as $n) {
    
    if($i == 3){
      break;
    }
    
    echo $n;
    
    $i++;
}
