<?php
// TEST
$arr = json_decode('
[
{
"Settings":[],
"Fields":[
{"txt":"Name of the product","comment":"","cb":true,"na":false},
{"txt":"Regular price","comment":"","cb":false,"na":false},
{"txt":"1-Day Deal price","comment":"","cb":false,"na":false},
{"txt":"Clearance price","comment":"","cb":false,"na":false},
{"txt":"Copy","comment":"","cb":true,"na":false},
{"txt":"SKU is created and live","comment":"","cb":true,"na":false},
{"txt":"Colors available","comment":"","cb":true,"na":false},
{"txt":"Subject line","comment":"","cb":true,"na":false},
{"txt":"Coupon code","comment":"","cb":false,"na":false},
{"txt":"Coupon code - start date","comment":"","cb":false,"na":false},
{"txt":"Disclaimer verbiage within email","comment":"","cb":true,"na":false},
{"txt":"Disclaimer verbiage within MailChimp","comment":"","cb":true,"na":false},
{"txt":"Distributing to the correct email lists","comment":"","cb":true,"na":false},
{"txt":"Masthead Creative and Copy","comment":"","cb":true,"na":false},
{"txt":"Promo Graphic Creative and Copy","comment":"","cb":false,"na":false}
],
"Others":[
{"txt":"Additional Comments","val":"gfdgfd"}
]
}
]
', true);
//print $arr[0][Fields][0][txt];
foreach($arr[0][Fields] as $key) {
echo $key[txt];
}
preferences:
44.5 ms | 402 KiB | 5 Q