how can I access property with at sign (@) – @order, in this case?
Here is the output of print_r function:
[0] => stdClass Object
(
[@order] => 0
[name] => Arthotel Munich
[address1] => Paul-Heyse-Strasse 10
[city] => Munich
[postalCode] => 80336
[countryCode] => DE
[airportCode] => MUC
)
I have tried $object->@order, $object[@order], $object::order. None of them worked.
Can do
or with a variable variable
But like Tomalak pointed out, you want to change that property name. It leads to fubar code.