I have an array that contains a query and gives me values like
[0] => stdClass Object ( [id] => 233 [title] => Login [path] => login [link] => index.php?option=com_users&view=login [parent_id] => 1 [level] => 1 [lft] => 11 )
[1] => stdClass Object ( [id] => 238 [title] => Sample Sites [path] => sample-sites [link] => index.php?option=com_content&view=article&id=38 [parent_id] => 1 [level] => 1 [lft] => 259 )
Giving those and taking in consideration that I don´t know the values of lft as they are random how can I select from the array the object with the lowest number in lft?
Just to make my question a little be clearer as I don´t know if I´m making any sense, if I have an array with values 6, 1, 3, 10, 25 if I want to access the 1 in this case the index is 1 so I can just go $array[1]; but what if I want to access 1 but don´t know the index, all I know is that I need the lowest number in the array which in this case turns out to be 1.