Answers for "json_decode php check"

PHP
0

p

function isJson($string) {
 json_decode($string);
 return (json_last_error() == JSON_ERROR_NONE);
}
Posted by: Guest on April-09-2020

Browse Popular Code Answers by Language