Skip to content

Functions json_encode and json_decode for earlier versions of PHP (< 5.2.0)

Notifications You must be signed in to change notification settings

alexmuz/php-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Functions json_encode() and json_decode() on PHP

Implementation of functions json_encode() and json_decode() on PHP.

See http://php.net/json_encode and http://php.net/json_decode

System Requirements

* PHP
	* mbstring extension
* Charset UTF-8

Using php-json

If you have errors "Call to undefined function json_encode() or json_decode()" just add:

require_once("phpJson.class.php");

or

require_once("json_encode.php");
require_once("json_decode.php");

Now functions json_encode() and json_decode() are available and you can use it:

json_encode($value);
json_decode($json, $assoc);

About

Functions json_encode and json_decode for earlier versions of PHP (< 5.2.0)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages