Skip to content
Advertisement

Access JSON object name in PHP

I have the following JSON:

JavaScript

I’m desperately trying to access the dynamic object names like "-91607259/387798111", how can I do it?

Right now I have:

JavaScript

Advertisement

Answer

I would imagine that the simplest thing to do is to decode into associative arrays instead of stdClass objects

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement