I have this array i want to get the maximum id of an array, Is there any php function to find out the maximum value from array.For eg. in current example it should return 2 as highest value of column id.
Array
(
[0] => stdClass Object
(
[name] => 'p1'
[id] => 0
)
[1] => stdClass Object
(
[name] => 'p2'
[id] => 1
)
[2] => stdClass Object
(
[name] => 'p3'
[id] => 2
)
)