nested json decode php code example
Example: decode a nested JSON with php
foreach($json as $elem) {
echo( $elem['name']." - ".$elem['favourite']['colour'] );
echo("<br/>");
}
foreach($json as $elem) {
echo( $elem['name']." - ".$elem['favourite']['colour'] );
echo("<br/>");
}