Class TVarDumper

Description

TVarDumper class.

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,

  1.    echo TVarDumper::dump($var);

  • author: Qiang Xue <qiang.xue@gmail.com>
  • version: $Id: TVarDumper.php 2996 2011-06-20 15:24:57Z ctrlaltca@gmail.com $
  • since: 3.0

Located in /Util/TVarDumper.php (line 31)


	
			
Method Summary
static string dump (mixed $var, [integer $depth = 10], [ $highlight = false])
Methods
static method dump (line 45)

Converts a variable into a string representation.

This method achieves the similar functionality as var_dump and print_r but is more robust when handling complex objects such as PRADO controls.

  • return: the string representation of the variable
  • access: public
static string dump (mixed $var, [integer $depth = 10], [ $highlight = false])
  • mixed $var: variable to be dumped
  • integer $depth: maximum depth that the dumper should go into the variable. Defaults to 10.
  • $highlight

Documentation generated on Mon, 25 Jun 2012 14:39:35 +0200 by phpDocumentor 1.4.3