josn 格式 解析

格式为:{"lng":113.534634,"lat":22.274308}

 

解析步骤如下:

<?php $a=json_decode($goods_info[0]['shopcoord'])->lng; ?>
<?php $b=json_decode($goods_info[0]['shopcoord'])->lat; ?>

posted @ 2014-08-20 09:22  麦田守望者~  阅读(285)  评论(0编辑  收藏  举报