I have an array list like below,
Array(
[1] => Array
(
[id] => 18
[name] => mac
[country_code] => +91
[phone] => 1325647890
[distance] => 15 m
[address] => sdfghjk
[city] => Place_1
[state] => Kerala
[postal_code] => 682030
)
[2] => Array
(
[id] => 18
[name] => Paul
[country_code] => +91
[phone] => 1325647890
[distance] => 32.1 m
[address] => sdfghjk
[city] => Place_1
[state] => Kerala
[postal_code] => 686610
)
[3] => Array
(
[id] => 18
[name] => John
[country_code] => +91
[phone] => 1325647890
[distance] => 3 m
[address] => sdfghjk
[city] => Place_1
[state] => Kerala
[postal_code] => 682030
)
)
I need to pick single array from the above list with minimum value of [distance]
Ie, required output will be,
[3] => Array
(
[id] => 40
[name] => John
[country_code] => +91
[phone] => 1234567809
[distance] => 3 m
[address] => bddf
[city] => Place_3
[state] => Kerala
[postal_code] => 682030
)