easiest way to call a php function?

Complete noob here. Whats the best and most secure way to use a simple php function with return variable when calling from a tpl file?

Hello, wurdup!



My recommendation is to use

{$var1|any_php_function:$var2} to display function value

{assign var=“return_var” value=$var1|any_php_function:$var2} to assign function value



Best regards, Alt-team

okay thank you

[quote name='Alt-team' timestamp='1333539834' post='134285']

Hello, wurdup!



My recommendation is to use

{$var1|any_php_function:$var2} to display function value

{assign var=“return_var” value=$var1|any_php_function:$var2} to assign function value



Best regards, Alt-team

[/quote]



Hi. Why do we use like {$var1|any_php_function:$var2} ?



Why $var1 is before any_php_function, and $var2 is after any_php_function?

[quote name='ooaykac' timestamp='1433849773' post='218005']

Hi. Why do we use like {$var1|any_php_function:$var2} ?



Why $var1 is before any_php_function, and $var2 is after any_php_function?

[/quote]



Please check

[quote][color=#282828][font=arial, verdana, tahoma, sans-serif]Hi. Why do we use like {$var1|any_php_function:$var2} ?[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]Why $var1 is before any_php_function, and $var2 is after any_php_function? [/font][/color][/quote]



it is designed so.



best regards,

WSA team