Use PHP Foreach with 3 tables

I receive data from a site as you can see in the code below. Is it possible to use 3 tables in a single loop foreach?

I have tried too many code snippets, but I have not found a solution.

This is my normal code:

<? php
$ i = 0;
$ url = file_get_contents ("xxx");

$ display = # {"__ typename": "GraphImage", "id": "(. *?)", "edge_media_to_caption": {"edges": [{"node":{"text":"(.*?)"}}]}, "shortcode": "(. *?)", "edge_media_to_comment": {"count": (. *?)}, "comments_disabled": (. *?), "photographed_in_precisely": (. *?), "dimensions": {"height": (. *?), "width": (. *?)}, "display_url": "(. *?)", "edge_liked_by": {"count": (. * ?)}, "edge_media_preview_like": {"count": (. *?)}, "location": (. *?), "gating_info": (. *?), "media_preview": "(. *?) "," owner ": {" id ":" (. *?) "," username ":" (. *?) "} # i & # 39 ;;

preg_match_all ($ display, $ url, $ dop);

foreach ($ dop[1] like $ displayop1) {
echo $ displayop1. "

"; } foreach ($ dop[9] like $ displayop2) { echo $ displayop2. "

"; } foreach ($ dop[15] like $ displayop3) { $ i ++; if ($ i == 2) {pause;} echo $ displayop3. "

"; }

I have tried.

<? php

foreach ($ dop[1] like $ displayop1) {
foreach ($ dop[9] like $ displayop2) {
foreach ($ dop[15] like $ displayop3) {
echo $ displayop1. "

"; echo $ displayop2. "

"; $ i ++; if ($ i == 2) { Pause; } echo $ displayop3. "

"; } } } ?> $ dop2 => $ dop3) { echo $ dop1. $ dop2. $ dop3; } ?>

These codes did not work.

Can someone help me do that? I have looked a lot for the solution, but I have not found any information. I did not know exactly how to search the internet because my English was not very good, thank you.