I have saved data from a form with Serialize array and Implode and Json_encode like bellow:
Serialize
+-------+----------------------------------------+-------------------------------------+----------------------------------------+
| Agent | Customers | Cars | Money |
+-------+----------------------------------------+-------------------------------------+----------------------------------------+
| SMITH | a:2:{i:0;s:4:"Jack";i:1;s:4:"Mike";} | a:2:{i:0;s:3:"BMW";i:1;s:4:"Audi";} | a:2:{i:0;s:5:"1000$";i:1;s:5:"1500$";} |
| ... | ... | ... | ... |
+-------+----------------------------------------+-------------------------------------+----------------------------------------+
Implode
+-------+------------+----------+-------------+
| Agent | Customers | Cars | Money |
+-------+------------+----------+-------------+
| SMITH | Jack,Mike | BMW,Audi | 1000$,1500$ |
| ... | ... | ... | ... |
+-------+------------+----------+-------------+
Json_encode
+-------+-----------------+----------------+-------------------+
| Agent | Customers | Cars | Money |
+-------+-----------------+----------------+-------------------+
| SMITH | ["Jack","Mike"] | ["BMW","Audi"] | ["1000$","1500$"] |
| .... | .... | ... | ... |
+-------+-----------------+----------------+-------------------+
I want to show data in admin panel like bellow:
Agent SMITH sold BMW car to Jack with 1000$ and Audi car to Mike with 1500$
---------------------
How can i do this with 3 way Unserialize, Unimplode and Json_decode ?