- json_decode: documentation ( source)
- print_r: documentation ( source)
<?php
$j1 = '{ "data": [
{
"parent": "summer",
"image": "template/assets/x354.jpg",
"productName": "United Colors of Benetton" }, { "parent": "autumn", "image": "template/assets/x354.jpg", "productName": "United
Colors of Benetton" }, { "parent": "summer", "image":
"template/assets/x354.jpg", "productName": "Puma Running Shoes" } ] }
';
$d1 = json_decode($j1);
print_r($d1);