json_last_error
json_last_error
(PHP 5 >= 5.3.0, PHP 7)
json_last_error — Returns the last error occurred
Description
int json_last_error ( void )
Returns the last error (if any) occurred during the last JSON encoding/decoding.
Parameters
This function has no parameters.