- json_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
$test = array();
$test["abc"] = true;
$test["abc"] = $test["abc"] ? $test["abc"] : false;
$data = json_encode($test);
$test1 = json_decode($data);
$val = $test["abc"];
echo "testabc ".$test['abc']." test1abc".$test1["abc"];