Smarty debug_print_var modifier plugin Type: modifier Name: debug_print_var Purpose: formats variable contents for display in the console
| Parameters | |||
|---|---|---|---|
array|object
|
$var |
variable to be formatted |
# |
int
|
$max = 10 |
maximum recursion depth if $var is an array or object |
# |
int
|
$length = 40 |
maximum string length if $var is a string |
# |
int
|
$depth = 0 |
actual recursion depth |
# |
array
|
$objects = [] |
processed objects in actual depth to prevent recursive object processing |
# |
| Returns | |
|---|---|
string
|
|