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}
?>