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 itemattributes.
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
3 years ago
Following is my array title $test_data in PHP: