title: Getting an element out of an XML Object With PHP
body: <p>I am completely stuck on this issue so your help is greatly appreciated!</p>
  
  <p>I simply need to pull the ValidationCode out of this existing XML object.</p>
  
  <p>Here's is what I get when I do:</p>
  
  <p>print_r($response);</p>
  
  <p>TheResponse Object ( [ResponseText] => xxxxxxxxx [ResponseXml] => SimpleXMLElement Object ( [ValidationRequest] => SimpleXMLElement Object ( [AccountSid] => xxxxxxxx [PhoneNumber] => +15555555555 [FriendlyName] => SimpleXMLElement Object ( ) [ValidationCode] => 601532 ) ) [HttpStatus] => 200 [Url] => <a href="https://api.dddddd.com//2010-04-01/Accounts/xxxxxx/OutgoingCallerIds" rel="nofollow">https://api.dddddd.com//2010-04-01/Accounts/xxxxxx/OutgoingCallerIds</a> [QueryString] => [IsError] => [ErrorMessage] => ) </p>
  
  <p>How in the WORLD do I access that Validation Code using php? </p>
  
  <p>Thank you for your assistance!</p>