Skip to content
Advertisement

{$foo|@print_r} prints ‘{$foo|@print_r}’ on the screen

I want to print array variable $foo. So I have done {$foo|@print_r} this but its prints like "{$foo|@print_r}" on the front page.

I’m using the Oxied eshop and its use smarty as a template engine.

Advertisement

Answer

Try at least: that the array print for php in common

<?php
     print_r ($foo);
?>

Else try something like:

<?php
     {$foo|@debug_print_var} 
?>
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement