PHP: How to get the Max and Mix value in an Array

It is very simple to get the Max and Min value in an array, with a built in function .