T
T
Troodi Larson2018-04-01 23:35:10
PHP
Troodi Larson, 2018-04-01 23:35:10

How to reach an object with a hyphen?

There is an object:
$symb[0]->base-currency
But because of the hyphen in the base-currency, I can not access it, are there any alternatives?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2018-04-01
@troodi

->{base-currency}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question