php json encode inside nested statements 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/>");
}