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

category Zend
package Zend_Debug

 Methods

Debug helper function.

dump(mixed $var, string $label, bool $echo) : string

This is a wrapper for var_dump() that adds the


tags, cleans up newlines and indents, and runs htmlentities() before output.

Parameters

$var

mixed

The variable to dump.

$label

string

OPTIONAL Label to prepend to output.

$echo

bool

OPTIONAL Echo output if true.

Returns

string

Get Escaper instance

getEscaper() : \Zend\Escaper\Escaper

Lazy loads an instance if none provided.

Returns

Get the current value of the debug output environment.

getSapi() : \Zend\Debug\string;

This defaults to the value of PHP_SAPI.

Returns

\Zend\Debug\string;

Set Escaper instance

setEscaper(\Zend\Escaper\Escaper $escaper) 

Parameters

Set the debug output environment.

setSapi(string $sapi) : \Zend\Debug\void;

Setting a value of null causes Zend_Debug to use PHP_SAPI.

Parameters

$sapi

string

Returns

\Zend\Debug\void;

 Properties

 

$escaper

$escaper : \Zend\Escaper\Escaper

 

$sapi

$sapi : string