Concrete class for generating debug dumps related to the output source.

category Zend
package Zend_Debug
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Debug helper function. This is a wrapper for var_dump() that adds the <pre /> tags, cleans up newlines and indents, and runs htmlentities() before output.

dump(mixed $var, string $label = null, boolean $echo = true) : string
Static

Parameters

$var

mixed

The variable to dump.

$label

string

OPTIONAL Label to prepend to output.

$echo

boolean

OPTIONAL Echo output if true.

Returns

string

Get the current value of the debug output environment.

getSapi() : \string;
Static

This defaults to the value of PHP_SAPI.

Returns

\string;

Set the debug ouput environment.

setSapi(string $sapi) : \void;
Static

Setting a value of null causes Zend_Debug to use PHP_SAPI.

Parameters

$sapi

string

Returns

\void;

 Properties

 

$_sapi

$_sapi : string

Default

null
Static