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)

No description

static string
toString(object $obj)

Returns a string representation of an object.

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 The variable to dump.
integer $maxDepth The maximum nesting level for object properties.
boolean $stripTags Whether output should strip HTML tags.

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

Parameters

mixed $var
int $maxDepth

Return Value

mixed

static string toString(object $obj)

Returns a string representation of an object.

Parameters

object $obj

Return Value

string