I used JSON to send value from form to database. My table (name of the table tblstudent) has three columns i.e.
name score pic
["aa","bb","cc"] ["525","523","562"] ["img1.png","img2.png","img3.png"]
How to get values from JSON encode and put it into foreach loop to get the result like
img1.png
aa
525
image2.png
bb
523
image3.png
cc
562
and so on
You can use for loop and set index by the key
Output with :