- var_dump: documentation ( source)
- json_last_error_msg: documentation ( source)
- json_decode: documentation ( source)
<?php
$str = "inte json";
$test = json_decode($str, true);
var_dump($test);
if($test === null)
{
var_dump(json_last_error_msg());
}