原文:How do I grab the value from this SimpleXMLElement as a string in PHP
Say I have a variable called $myXMLElement and when I dump the variable it looks like this. SimpleXMLElement Object ( [@attributes] => Array ( [id] => 7 ) [0] => Kirkpatrick ) ...