convert array to object PHP
$obj = json_decode (json_encode ($var), FALSE);
where $var is an array.
convert object to array PHP
$arr = json_decode( json_encode($var), true);
where $var is an object
convert array to object PHP
$obj = json_decode (json_encode ($var), FALSE);
where $var is an array.
convert object to array PHP
$arr = json_decode( json_encode($var), true);
where $var is an object