JSON 函数
PHP 手册

json_last_error_msg

(PHP 5 >= 5.5.0)

json_last_error_msgReturns the error string of the last json_encode() or json_decode() call

说明

string json_last_error_msg ( void )

参数

此函数没有参数。

返回值

Returns the error message on success or NULL with wrong parameters.

参见


JSON 函数
PHP 手册