how to pre in smarty tpl code example Example 1: smarty print_r {$var|print_r} Example 2: how to pre in smarty tpl <PRE> {$var|print_r} </PRE>