文字

JSON 函数

Table of Contents

  • json_decode — 对 JSON 格式的字符串进行编码
  • json_encode — 对变量进行 JSON 编码
  • json_last_error_msg — Returns the error string of the last json_encode() or json_decode() call
  • json_last_error — 返回最后发生的错误

用户评论:

[#1] giunta dot gaetano at sea-aeroportimilano dot it [2006-09-04 03:35:34]

Two pure-php implementations of the json protocol that might be of use, e.g. for php 4 installs where adding extensions is not an option or because of extra functionality can be found here:

http://sourceforge.net/projects/phpxmlrpc (look for the extras package)

http://mike.teczno.com/json.html

Of course, performance is abysmal compared to the php extension, written in highly optimized C code...

上一篇: 下一篇: