$employees = [
"employee_1" => 10000,
"employee_2" => 8000,
"employee_3" => 170000,
"employee_4" => 10000,
"employee_5" => 11000,
"employee_6" => 22000,
"employee_7" => 28000,
];
$gotIt = [];
foreach ($employees as $key => $value) {
if ($value > 15000) {
$gotIt[] = $value;
echo "$key : $value<br>";
}
}
if (empty($gotIt)) {
echo "There are no employees with a salary of more than 15,000 thousand";
}