Home > Q&A > body text
"images": [ "1,2,3" ]
I want to split it into ['img':1,img:2,img:3]
勇敢的心2019-07-04 10:01:22
This is in json format, you have to convert it into an array first and then process it
小破孩2019-07-01 15:00:51
list(img_one,img_two,img_three) = explode(',',$image);
Try it out
OK, thanks
小乔2019-07-01 10:47:09
Doesn't seem to work
Is this js?
It's not js, it's the content in the database
ringa_lee2019-07-01 10:21:02
array_flip, just apply this function