First: if you need to use the key
variable in your loops, give it a unique name. You named both key
. Also you're not even using that key
so you might skip it altogether and leave just those item
attributes.
Second: you're referring to $test_id
and I don't see it defined in the code snippet you provided. If it's not defined elsewhere it won't work.
manpreet
Best Answer
2 years ago
Following is my array title $test_data in PHP: