print_r in twig symfony
Using print_r
in Twig Symfony
To use print_r
in Twig Symfony, you can use the dump
function. Here's an example:
{{ dump(variable) }}
Replace variable
with the variable you want to inspect. This will output the variable's contents for debugging purposes.