如图到底是json还是数组
print_r (json_decode($json2));echo "
"; <br>print_r (json_decode($json2, true));echo "<pre class="brush:php;toolbar:false;">";</p>
<p>print_r (json_ecode($json2, true));echo "<pre class="brush:php;toolbar:false;">";</p>
<p>都不管用直接用echo输出</p>
<p>$pageContents = $client->getContent();//getError<br>$pageContents =str_replace('trde_fullo_get_rsponse','',$pageContents);<br>$pageContents =str_replace('"jdp_rese":"{"":{"tde":{','',$pageContents);</p>
<div class="aritcle_card">
<a class="aritcle_card_img" href="/ai/863">
<img src="https://img.php.cn/upload/ai_manual/001/246/273/68b6ce0cd568b995.png" alt="办公小浣熊">
</a>
<div class="aritcle_card_info">
<a href="/ai/863">办公小浣熊</a>
<p>办公小浣熊是基于商汤大语言模型的原生数据分析产品,</p>
<div class="">
<img src="/static/images/card_xiazai.png" alt="办公小浣熊">
<span>77</span>
</div>
</div>
<a href="/ai/863" class="aritcle_card_btn">
<span>查看详情</span>
<img src="/static/images/cardxiayige-3.png" alt="办公小浣熊">
</a>
</div>
<p><span>立即学习</span>“<a href="https://pan.quark.cn/s/7fc7563c4182" style="text-decoration: underline !important; color: blue; font-weight: bolder;" rel="nofollow" target="_blank">PHP免费学习笔记(深入)</a>”;</p>
<p>echo $pageContents;</p>
<pre class="brush:php;toolbar:false;"><code>tid":2356471828086946,"buyer_nick":"图图爱跳舞","created":"2016-09-16 11:24:05","payment":"657.97","pay_time":"2016-09-16 11:24:22","modified":"2016-10-08 21:03:55","num":1,"price":"1985.00","receiver_name":"小百度","receiver_address":" 十里铺先行大厦(务必联系周冰签收!)","status":"TRADE_FINISHED","total_fee":"2054.97","num":1,"oid":2356471828086946,"outer_iid":"gncfastact240x2","payment":"657.97","status":"TRADE_FINISHED","title":"GN美国原装口香糖","price":"1985.00"</code>求指点批量插入mysql语句,最好来了例子,多谢大神了,新手上路。
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号