PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-debug-print-var.md

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-debug-print-var.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-debug-print-var.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 2 months ago
Size: 934 bytes
 

Contents

Class file image Download

debug_print_var

Returns the value of the given variable in a human-readable format in HTML. Used in the debug console, but you can also use it in your template while developing to see what is going on under the hood.

> Note > > Use for debugging only! Since you may accidentally reveal sensitive information or introduce vulnerabilities such as XSS using this method never use it in production.

Basic usage

{$myVar|debug_print_var}

Parameters

| Parameter | Type | Required | Description | |-----------|------|----------|------------------------------------------------------------------------| | 1 | int | No | maximum recursion depth if $var is an array or object (defaults to 10) | | 2 | int | No | maximum string length if $var is a string (defaults to 40) |