Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have two array with comma in Mysql database.
data[]= xyz,abc,raw;
value[] = 20,30,50;
I want this Json result=>
[["xyz",20], ["abc",30],["raw",50],]
Help me, Thanks
使用explode(),array_combine()然后json_encode()