We have seen that var_dump () and print show the current set of properties of any given SDO. 我们已看到,vardump()和print可显示任何给定SDO的当前属性集。
Here's one more tip : Xdebug provides an enhanced var_dump () function that's especially helpful with PHP arrays and classes. 下面是另外一个技巧:Xdebug提供了一个增强型vardump()函数,它对于PHP数组和类尤为有帮助。
This is one way the author and name objects on which we used var_dump above might have been represented in XML. 这是上文中应用vardump的作者与姓名对象在XML中的一种可能表达形式。
The var_dump () function shows the contents of the data object, but does not show its SDO type name. vardump()函数展示了数据对象的内容,但未显示其SDO类型名。
The PHP print instruction on this object, incidentally, produces the same information as var_dump () in a slightly more compact form, all on one line ( which we have split into five for readability ). 顺便说一下,在此对象上使用PHPprint指令将获得与vardump()相同的信息,且格式更为简洁,仅有一行(为可读性起见,本文将其拆分为五行书写)。