"1"代表什么?意味着在php print_r语句的末尾? [英] What does "1" mean at the end of a php print_r statement?

查看:57
本文介绍了"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屋!

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