Fast JSON parsing and encoding support for PHP extension
, (*1)
The php-cjson is a fast JSON parsing and encoding support for PHP extension., (*2)
$/path/to/phpize $./configure --with-php-config=/path/to/php-config $make && make install
encode, (*3)
"value") ); var_dump(cjson_encode($arr)); /* ==>output string(28) "[1,"string",{"key":"value"}]"; */ ?>
decode, (*4)
output array(3) { [0]=> int(1) [1]=> string(6) "string" [2]=> array(1) { ["key"]=> string(5) "value" } } */ ?>
Sources Download
PHP License 3.01