3
J'ai un nom d'objet obj
comme ça:objet lu PHP attributs
stdClass Object
(
[@attributes] => stdClass Object
(
[CurrencyCode] => AUD
[CurrencyName] => AUST.DOLLAR
[Buy] => 17825.4
[Transfer] => 17933
[Sell] => 18092.95
)
)
J'utilise quelques façons:
obj[CurrencyCode]
obj ->CurrencyCode
mais ne fonctionnent pas et obtenir erreur: Use of undefined constant CurrencyCode
Si l'utilisation: obj -> @attributes
pour obtenir l'erreur: syntax error, unexpected ''@attributes'' (T_CONSTANT_ENCAPSED_STRING)