PHP Class Prado\Util\TVarDumper

TVarDumper is intended to replace the buggy PHP function var_dump and print_r. It can correctly identify the recursively referenced objects in a complex object structure. It also has a recursive depth control to avoid indefinite recursive display of some peculiar variables. TVarDumper can be used as follows, echo TVarDumper::dump($var);
Since: 3.0
Author: Qiang Xue ([email protected])
Datei anzeigen Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
dump ( $var, $depth = 10, $highlight = false ) : string Converts a variable into a string representation.

Private Methods

Method Description
dumpInternal ( $var, $level )

Method Details

dump() public static method

This method achieves the similar functionality as var_dump and print_r but is more robust when handling complex objects such as PRADO controls.
public static dump ( $var, $depth = 10, $highlight = false ) : string
return string the string representation of the variable