Method | Description | |
---|---|---|
getErrorMessage ( integer $error ) : string | Returns the error message of a JSON error code. | |
getLastErrorMessage ( ) : string | User-land implementation of json_last_error_msg() for PHP < 5.5. |
Method | Description | |
---|---|---|
__construct ( ) |
public static getErrorMessage ( integer $error ) : string | ||
$error | integer | The error code |
return | string | The error message |
public static getLastErrorMessage ( ) : string | ||
return | string | The last JSON error message |