当我print_r();
(
[WebTransactionResult] => stdClass Object
(
[AmountBalance] => 0
[AmountLoaded] => 0
[CardNumber] => 60016400000256
[CardRefNumber] =>
[CardType] =>
[Currency] =>
[CurrentTier] => Silver Loyalty
[CustomerFirstName] => Member
[RedeemItem] =>
[ResponseCode] => 0
[ResponseMessage] => Success
[ReversedTransactionIds] =>
[SequenceCode] =>
[StoreId] => 1721
[SuccessTransactionIds] =>
[TerminalId] => 4377
[TotalAmountBalance] => 0
)
)
我只想打印[TotalAmountBalance]
的值我应该怎么做?同样的方式我想分别打印每个值。请帮忙
答案 0 :(得分:2)
尝试:
echo $objData->WebTransactionResult->TotalAmountBalance;