问题上显示数组的内容 [英] Problem on displaying contents of array

查看:122
本文介绍了问题上显示数组的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在code以下保存内容和图片到 $ varcontent [$ i] [内容] $ vacontent [$ I ] [形象] 。然而,只有我得到正确显示内容和图片外循环,为 $ varcontent [$ i] [内容] 。的print_r显示阵列,其包括图像中的所有数据。

 回声$ varcontent [4] [内容]; //显示内容
回声$ varcontent [4] [形象] //显示字阵


解决方案

您可能需要做的print_r($ varcontent [4] [内容])

the code below saves content and images to $varcontent[$i]["content"] and $vacontent[$i]["images"] . However the only I get outside the loop that displays the content and images correctly, is $varcontent[$i]["content"] . Print_r shows all the data of the array including images.

echo $varcontent[4]["content"]; //shows the content
echo $varcontent[4]["images"] //shows the word Array

解决方案

You probably need to do print_r($varcontent[4]["content"])

这篇关于问题上显示数组的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆