0
How to loop and extract record from nested json array with php
Im stuck... I have a multipe nested Arrays in json Format. I need to loop throug those and assign the values to variables based on used Input - i must found with which Array Matches the user Input. I try a foreeach loop but I do it wrong… I coulds find an answer also here. Here is my Code. https://code.sololearn.com/wFW1d5m3TGqY/?ref=app
2 Réponses
+ 1
pap , change in the second foreach loop $arr to $array.
0
TheWh¡teCat 🇧🇬 thanks! have you any idea how to solve the second part of the question? now it loops right, but to check if the userd input ($kur = „kk“) is in anny of the arrays and to echo only this array?