php find lowest value in associative array
snippet in php

php find lowest value in associative array

user2749

$a = [
	['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($newArray);