{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.
{php} tagsTechnical Note
To access PHP variables in {php} blocks you may need to use the PHP
global
keyword.
{php} tags with global and assigning a variable
assign('varX','Strawberry');
{/php}
{$varX} is my fav ice cream
]]>
The following seriously NOT recommended as its in the template scope
See also
$php_handling,
{include_php},
{include},
{insert} and
Componentized Templates.