What Is PHP JSON Extension

Q

What Is the PHP JSON Extension?

✍: FYIcenter.com

A

The PHP JSON Extension is a standard extension included in the PHP distribution since PHP 5.2.0 version to support JavaScript Object Notation (JSON) data-interchange format defined in RFC 7159.

The PHP JSON Extension provides 4 main functions:

  • json_decode() — Decodes a JSON string
  • json_encode() — Returns the JSON representation of a value
  • json_last_error_msg() — Returns the error string of the last json_encode() or json_decode() call
  • json_last_error() — Returns the last error occurred

For more information on the PHP JSON extension, see the PHP JavaScript Object Notation Web site.

 

json_decode() Function in PHP

Using JSON in PHP

Using JSON in PHP

⇑⇑ JSON Tutorials

2023-02-28, 1530🔥, 0💬