访问变量

时间:2018-10-23 09:08:58

标签: arrays object variables

我是php的初学者,我想从以下示例中将 CurrencyCode Value 引入两个变量中。知道我该怎么做吗?谢谢

$results = $soapClient->CalculateRate($params); 
print_r($results);

此结果

stdClass Object ( 
[Transaction] => stdClass Object ( 
            [Reference1] => 001 
            [Reference2] => 
            [Reference3] => 
            [Reference4] => 
            [Reference5] => 
            ) 
[Notifications] => stdClass Object ( ) 
[HasErrors] => 
[TotalAmount] => stdClass Object ( 
        [CurrencyCode] => USD [Value] => 7.65 
    ) 
)

0 个答案:

没有答案