Parse JSON | PHP

April 22nd, 2021 11:39:05 PM

					
<?php $json ='{"id":1,"name":"foo","interest":["wordpress","php"]}'; $obj=json_decode($json); echo $obj->interest[1]; //prints php ?>

Featured Posts