class Debug (View source)

Static class containing most used debug methods.

Methods

static 
dump(mixed $var, integer $maxDepth = 2, boolean $stripTags = true)

Prints a dump of the public, protected and private properties of $var.

static mixed
export(mixed $var, int $maxDepth)

Export

static string
toString(object $obj)

Convert to string

Details

static dump(mixed $var, integer $maxDepth = 2, boolean $stripTags = true)

Prints a dump of the public, protected and private properties of $var.

Parameters

mixed $var
integer $maxDepth Maximum nesting level for object properties
boolean $stripTags Flag that indicate if output should strip HTML tags

static mixed export(mixed $var, int $maxDepth)

Export

Parameters

mixed $var
int $maxDepth

Return Value

mixed

static string toString(object $obj)

Convert to string

Parameters

object $obj

Return Value

string