我完全坚持这个问题,所以非常感谢你的帮助!
我只需要从现有的XML对象中提取ValidationCode。
这是我在做的时候得到的:
的print_r($响应);
TheResponse Object([ResponseText] => xxxxxxxxx [ResponseXml] => SimpleXMLElement对象([ValidationRequest] => SimpleXMLElement对象([AccountSid] => xxxxxxxx [PhoneNumber] => +15555555555 [FriendlyName] = > SimpleXMLElement Object()[ValidationCode] => 601532))[HttpStatus] => 200 [Url] => https://api.dddddd.com//2010-04-01/Accounts/xxxxxx/OutgoingCallerIds [QueryString] => [IsError] => [ErrorMessage] =&gt ;)
如何在WORLD中使用php访问验证码?
感谢您的协助!
答案 0 :(得分:1)
$code = $response->ResponseXml->ValidationRequest->ValidationCode;
答案 1 :(得分:1)
$ValidationCode=$response->ResponseXml->ValidationRequest->ValidationCode;