PHP JSON Functions


JSON stands for JavaScript Object Notation. You will find the PHP JSON functions on this page. There is no installation required for these functions. These functions are available within the PHP core language.

Since PHP 7, the JSON parser is much improved and licensed under PHP.

json_decode()Decode JSON string
json_encode()Encode value to JSON format
json_last_error()Return the last error occurred
json_last_error_msg()Return the error string of the last json_encode() or json_decode() call
PHP JSON Functions

Add comment

Tutor Network

Learn PHP from A to Z