Caution: The documentation you are viewing is
for an older version of Zend Framework.
You can find the documentation of the current version at docs.zendframework.com
The static method
Zend_Debug::dump() prints or returns
information about an expression. This simple technique of debugging is
common, because it is easy to use in an ad hoc fashion, and requires no
initialization, special tools, or debugging environment.
$var argument specifies the expression or variable
about which the
Zend_Debug::dump() method outputs
$label argument is a string to be prepended to the
Zend_Debug::dump(). It may be useful, for
example, to use labels if you are dumping information about multiple
variables on a given screen.
$echo argument specifies whether the output
Zend_Debug::dump() is echoed or not.
TRUE, the output is echoed.
Regardless of the value of the
$echo argument, the
return value of this method contains the output.
It may be helpful to understand that internally,
Zend_Debug::dump() method wraps the PHP function
If the output stream is detected as a web presentation,
the output of
var_dump() is escaped using
and wrapped with (X)HTML
|Debugging with Zend_Log|
Also consider the Zend_Log
component when writing more permanent debugging code.
For example, you can use the