yii\helpers\VarDumper - Yii2 类参考手册
Class yii\helpers\VarDumper
全部
| 方法 Methods
Inheritance | yii\helpers\VarDumper » yii\helpers\BaseVarDumper |
---|---|
Available since version | 2.0 |
VarDumper 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.
VarDumper can be used as follows,
VarDumper::dump($var);
Public Methods
隐藏继承的方法 Hide inherited methods
方法 Method | 简介 Description | 定义在 Defined By |
---|---|---|
dump() | Displays a variable. | yii\helpers\BaseVarDumper |
dumpAsString() | Dumps a variable in terms of a string. | yii\helpers\BaseVarDumper |
export() | Exports a variable as a string representation. | yii\helpers\BaseVarDumper |