20, "Mike" => 50, "Gaurav" => 75, "Paolo" => 100 ); $count = 0; foreach ($array as $key => $val) { if($count<=3) { echo "$key: $val\n"; } else { break; } $count++; } ?>