0

json data looks like this:

{"name":{"id":55555555,"name":"name" ...}}

echo $id[0]["id"]; returns

Undefined offset: 0 in C:\xampp\htdocs\index\lol\time.php on line 12

only echo $id["name"]["id"]; returns the desired id.

The problem is that the "name" key is not static and will change every request, so how can i access the id?

Alex Epvp
  • 27
  • 3

0 Answers0