How to pull highest value from array?

I have an array of image width values pulled from XML. I want to simply look at the array and return a value that is equal to the highest number in the array.

e.g. the array might end up like

array [250,600,350,375]

and I just want something that returns the highest value (in this case the 600).

Is this an easy thing to do?