json_last_error()
json_last_error - Returns the last error occurred
Syntax
int json_last_error ()
Arguments
-
Description
Returns the last error (if any) occurred by last JSON parsing.
Version
PHP 5.3.0
Return value
Returns an integer, the value can be one of the following constants: