Ver originalforeach($ua as $d){ $count = 0; foreach($d as $datos) { echo $d["pk_audit"]; $count++; if($count == 3){ $count = 0; break 2; } }}