Accessing class element - a variable or array element?

How would I access the 14.95 here? \[code\]$object->{0}\[/code\] or \[code\]$object[0]\[/code\] doesn't work\[code\] SimpleXMLElement Object ( [@attributes] => Array ( [currencyID] => USD ) [0] => 14.95 )\[/code\]Interesting... If I do \[code\](int)$object->{0}\[/code\] it works....
 
Back
Top