{php}
The {php} tags allow PHP code to be embedded directly into the template. They
will not be escaped, regardless of the $php_handling setting. This
is for advanced users only, not normally needed and not recommended.
Technical Note
To access PHP variables in {php} blocks you will need to use the PHP
global
keyword.
Example php in {php} tags{php} tags with global and assigning a variable
assign('varX','Toffee');
{/php}
{* output the variable *}
{$varX} is my fav ice cream :-)
]]>
See also
$php_handling,
{include_php},
{include},
{insert}
and
componentized templates.