# How to pull highest value from array?

**URL:** <https://forum.kirupa.com/t/how-to-pull-highest-value-from-array/203769>\
**Category:** Uncategorized\
**Created:** [October 13, 2006, 9:35pm UTC](https://forum.kirupa.com/t/how-to-pull-highest-value-from-array/203769 "2006-10-13T21:35:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benek](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/benek/32/2899_2.png) [@Benek](https://forum.kirupa.com/u/Benek)\
**Post date:** [October 13, 2006, 9:35pm UTC](https://forum.kirupa.com/t/how-to-pull-highest-value-from-array/203769/1 "2006-10-13T21:35:43Z")

</div>

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?
