josn格式解析

mac2022-06-30  94

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

 

解析步骤如下:

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

转载于:https://www.cnblogs.com/hgj123/p/3923789.html

最新回复(0)