<?php
$items = [
['emp_id' => '1', 'name' => 'ram', 'age' => 40],
['emp_id' => '5', 'name' => 'ram_1', 'age' => 20],
['emp_id' => '2', 'name' => 'ram_2', 'age' => 30],
['emp_id' => '3', 'name' => 'ram_4', 'age' => 25],
['emp_id' => '4', 'name' => 'ram_3', 'age' => 50]
];
// please find minimum age employee in above array.
echo min(array_column($items, 'age'));
echo max(array_column($items, 'age'));
?>
The min() function returns the lowest value in an array
exemple :
echo(min(array(44,16,81,12)));