标签:os ar strong sp on c amp r bs
(PHP 5 >= 5.2.0, PECL json >= 1.2.0)
Example #1 A json_encode() 的例子
<?php $arr = array (‘a‘=>1,‘b‘=>2,‘c‘=>3,‘d‘=>4,‘e‘=>5); echo json_encode($arr); ?>
以上例程会输出:
{"a":1,"b":2,"c":3,"d":4,"e":5}
标签:os ar strong sp on c amp r bs
原文地址:http://my.oschina.net/ajian2014/blog/314762