摘要:
http://www.php.net/json_encode 阅读全文
posted @ 2013-03-15 15:27
火腿骑士
阅读(234)
评论(0)
推荐(0)
摘要:
http://blog.163.com/longsu2010@yeah/blog/static/1736123482011025102551291/PHP之JSON -json_decode函数2011-01-25 22:25:51| 分类: PHP | 标签: |字号大中小订阅json_decode (PHP 5 >= 5.2.0, PECL json >= 1.2.0)json_decode — 对 JSON 格式的字符串进行编码说明 mixed json_decode ( string $json [, bool $assoc ] ) 接受一个 JSON 格式的字符串并且把它 阅读全文
posted @ 2013-03-15 15:25
火腿骑士
阅读(172)
评论(0)
推荐(0)
摘要:
$data ={"itemName":"Giordana","itemId":450,"itemPrice":45,"itemCategory":"Shirit",};$result = json_decode($data,true);You need to do above two steps in the controller function and then if you want to show that json data in the view file You 阅读全文
posted @ 2013-03-15 15:21
火腿骑士
阅读(169)
评论(0)
推荐(0)
浙公网安备 33010602011771号