"1"代表什么?意味着在php print_r语句的末尾? [英] What does "1" mean at the end of a php print_r statement?
本文介绍了"1"代表什么?意味着在php print_r语句的末尾?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的print_r($view)
函数产生:
View Object
(
[viewArray:View:private] => Array
(
[title] => Projet JDelage
)
)
1 <--------------
最后的"1"是什么意思? PHP手册对如何解析print_r
的输出不是很清楚.
What does the "1" at the end mean? The PHP manual isn't very clear on how to parse the output of print_r
.
推荐答案
您可能拥有echo print_r($view)
.删除echo
构造.而且...您需要解析其输出什么?当然,有更好的方法可以解决您的问题.
You probably have echo print_r($view)
. Remove the echo
construct. And... what need do you have to parse its output? There are certainly much better ways to solve your problem.
这篇关于"1"代表什么?意味着在php print_r语句的末尾?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文