Json_encode Alternative For PHP 4
Join the DZone community and get the full member experience.
Join For FreeCredits goes to Steve http://usphp.com/manual/en/function.json-encode.php#82904
$v) $result[] = json_encode($k).':'.json_encode($v);
return '{' . join(',', $result) . '}';
}
}
}
?>
PHP
Opinions expressed by DZone contributors are their own.
Comments