If PHP CURL has three figures, how can I write it correctly?

about PHP CURL
there are three sets of data returned by default

clipboard.png

this means that it takes three foreach to implement
. Are there any other ways?

how else can I get the data of the second dishes-selected or even the third (options)?

Mar.07,2021

first json_decode (after $data, TRUE), take $data ['restaurant'] [' dishes-select'] ['options' ] directly. If you have to loop, use the recursive function

.
Menu