dumpAsString() public static method
Dumps a variable in terms of a string.
This method achieves the similar functionality as var_dump and print_r but is more robust when handling complex objects such as Yii controllers.
| public static string dumpAsString ( $var, $depth = 10, $highlight = false ) | ||
|---|---|---|
| $var | mixed | 
 Variable to be dumped  |  
| $depth | integer | 
 Maximum depth that the dumper should go into the variable. Defaults to 10.  |  
| $highlight | boolean | 
 Whether the result should be syntax-highlighted  |  
| return | string | 
 The string representation of the variable  |  
Please login to continue.