json_last_error

json_last_error

(PHP 5 >= 5.3.0, PHP 7)

json_last_errorReturns 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.

Return Values

Returns an integer, the value can be one of the following constants:

登录查看完整内容