print_r($ array)结果
我从数据库中检索了一些值,并在使用print_r时获得了以下结果:
Array
(
[122] => Array
(
[p_name] => Tony Hutson
[p_image] => profile_image/profile_61323166474.jpg
[pid] => 42
[sid] => 122
[stitle] => sfcxdggf
[audio] => audio_file/audio_61324302202.mp3
[s_description] => ?mnlmkl bvnbmnmmn, bnbmn
[s_image] => sermon_image/image_41324302202.jpg
)
[count] => Array
(
[count] => 2
)
)
如何检索count的值?
答案 0 :(得分:5)
echo $array['count']['count'];
答案 1 :(得分:1)
像这样,
echo $array['count']['count'];