当前位置:Gxlcms > PHP教程 > echo数组单元的值不全解决方案

echo数组单元的值不全解决方案

时间:2021-07-01 10:21:17 帮助过:2人阅读

echo数组单元的值不全
数组的为
  1. <br>
  2. Array<br>
  3. (<br>
  4. [title] => 初一上册数学测试题<br>
  5. [id] => 6<br>
  6. [subject] => 14<br>
  7. [parts] => [["单选","100",1]]<br>
  8. [topic] => [["1","100"]]<br>
  9. [json] => [["6","<p style="text-indent:28px;line-height:200%"><span style=";color:rgb(0,0,0);font-size:14px;font-family:<br />
  10. [#39;">小红做一道数学题“</span><span_style] ==""> ';color:rgb(0,0,0);font-weight:bold;font-size:14px;font-family:<br>
  11. [#39;'>两个多项式<span_style] ==""> 'font-family:Times New Roman'>A<span style="font-family:宋体">、</span><span style="font-family:Times New Roman">B</span><span style="font-family:宋体">,</span><span style="font-family:Times New Roman">B</span><span style="font-family:宋体">为</span><img src="new/2019-09-21-201921/spacer.gif" word_img="file:///C:\Users\hp\AppData\Local\Temp\ksohtml\wps_clip_image-14927.png" style="background:url(http://www.exam.com/Public/Js/Home/ueditor/themes/default/images/word.gif) no-repeat center center;border:1px solid #ddd" height="22" width="83"><span style=";color:rgb(0,0,0);font-weight:bold;font-size:14px;font-family:<br />
  12. [#39;">,试求<span_style] ==""> 'font-family:Times New Roman'>A B</span_style]></span><span style="font-family:宋体">的值</span><span style=";color:rgb(0,0,0);font-size:14px;font-family:<br />
  13. [#39;">”。小红误将<span_style] ==""> 'font-family:Times New Roman'>A B</span_style]></span><span style="font-family:宋体">看成</span><span style="font-family:Times New Roman">A</span><span style=";color:rgb(0,0,0);font-size:14px;font-family:<br />
  14. [#39;">-</span><span_style] ==""> ';color:rgb(0,0,0);font-size:14px;font-family:<br>
  15. [#39;'>B<span_style] ==""> 'font-family:宋体'>,结果答案(计算正确)为<img src="new/2019-09-21-201921/spacer.gif" word_img="file:///C:\Users\hp\AppData\Local\Temp\ksohtml\wps_clip_image-30836.png" style="background:url(http://www.exam.com/Public/Js/Home/ueditor/themes/default/images/word.gif) no-repeat center center;border:1px solid #ddd" height="22" width="110"><span style=";color:rgb(0,0,0);font-size:14px;font-family:<br />
  16. [#39;">.</span></span_style]></span_style]></span_style]></span_style]></p><p_style] ==""> 'text-indent:21px;line-height:200%'><span style=";color:rgb(0,0,0);font-size:14px;font-family:<br />
  17. [#39;">(<span_style] ==""> 'font-family:Times New Roman'>2</span_style]></span><span style="font-family:宋体">)求出当</span><span style=";color:rgb(0,0,0);font-style:italic;font-size:14px;font-family:<br />
  18. [#39;">x</span><span_style] ==""> ';color:rgb(0,0,0);font-size:14px;font-family:<br>
  19. [#39;'>] => 3<span style="font-family:宋体">时</span><span style="font-family:Times New Roman">A B</span><span style="font-family:宋体">的值</span><span style="font-family:Times New Roman">.</span><p></p><p><br></p>",1,"100"]]<br>
  20. [total] => 100<br>
  21. )<br>
  22. </span_style]></p_style]>

我在打印其中的json键时,却没打印全,显示
  1. <br>
  2. [["6","<p style="text-indent:28px;line-height:200%"><span style=";color:rgb(0,0,0);font-size:14px;font-family:<br />
  3. </pre><br />
  4. 这是为毛,命名数组里都有,可是打印单独的值却显示不全,哪位大大能够指点迷津,不甚感激!!!
  5. </p>
  6. <span class=" prompt'="">分享到:</span>
  7. <span class="social-share-buttons" data-title="【echo数组单元的值不全】数组的为Array(????[title]?=>?初一上册数学测试题????[id]?=>?6????[subject]?=>?14????[parts]?=>?[["单选"..." data-pics=""></span>
  8. </p>
  9. <p></p><br><font color="#FF8000">------解决方案--------------------</font><br>请
输出var_export($arr)结构;

人气教程排行