Find node with lowest numeric value in array
<p>I have this following array output:</p>

<pre><code>Array ( 
    [0] =&gt; SimpleXMLElement Object ( [0] =&gt; 32.4 km )
    [1] =&gt; SimpleXMLElement Object ( [0] =&gt; 10.2 km )
    [2] =&gt; SimpleXMLElement Object ( [0] =&gt; 205 km )
    [3] =&gt; SimpleXMLElement Object ( [0] =&gt; 50.8 km ) 
)
</code></pre>

<p>I am trying to get the shortest distance from a particular address and from this result the shortest is 10.2 km. How can I compare all the km distance and just display the one with the smallest number?</p>

<p>My main goal here is the get the shortest distance based on this array result.</p>
