PHP | json_last_error_msg() Function Example

Posted by Editorial Staff | Updated on

The json_last_error_msg() is a builtin function which returns the error string of the last json_encode() or json_decode() call.

Syntax:

Example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers