Array Traversal

In PHP it's easy to get JSON decoded by $data = json_decode($input). But many newcomers are confused by how to pick individual information from the resulting array or object structure then. This visualization is intended to help.

Hover with the mouse over entries or keys to see the required array or object traversal syntax:

$data

Array(
[fp] => 12397a3cd1fb8cd16d320897de43ee1a
[class] =>
Array(
[canonic\\classmap] => phar://single/shared.phar/autoload.update.php
[canonic_autoloader] => stub.php
)
[function] =>
Array(
[function1] => zzzzzZZZZZ/1.php
)
[const] =>
Array(
[test2] => tokenizertests/dbt.php
)
)


link

Also check the manual on array syntax and how to work with objects.
Or how to use a foreach to loop over entries.