赞
踩
public function jsontq(){ $json = '[ { "Domain": "cldw3.cn", "Domains": "cldw3.cn" }, { "Domain": "cldw2.cn", "Domains": "cldw2.cn" }, { "Domain": "cldw1.cn", "Domains": "cldw1.cn" }, { "Domain": "cldw.cn", "Domains": "cldw.cn" } ]'; $arr = json_decode($json,true); $urls = ''; foreach ($arr as $v){ $urls = $urls . '<br>' . $v['Domain']; } dump($arr); echo $urls;die; }
输出
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。