I am not being able to figure out how to get the first item in this type of collection: Varien_Data_Tree_Node_Collection
without knowing the key, is this possible?
I am not being able to figure out how to get the first item in this type of collection: Varien_Data_Tree_Node_Collection
without knowing the key, is this possible?
Class Varien_Data_Tree_Node_Collection implements ArrayAccess. Try to use
reset($varienCollection); //to reset the internal array pointer
$firstElement = current($varienCollection);