PHP Класс 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);
С версии: 3.0
Автор: Qiang Xue ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
dump ( $var, $depth = 10, $highlight = false ) : string Converts a variable into a string representation.

Приватные методы

Метод Описание
dumpInternal ( $var, $level )

Описание методов

dump() публичный статический метод

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
Результат string the string representation of the variable