/ Published in: PHP
function to test whether or not a string is JSON encoded
Expand |
Embed | Plain Text
/** * is_json * * determines whether or not a string contains valid json encoding. * * @param string $string string to test * @return bool true if valid, false if not */ function is_json($string) { }
You need to login to post a comment.
