Functions:assign

Assigns a value to a variable

assign(mixed $value, string $var)


 * value : the value that you want to save
 * var : the variable name (without the leading $)

Example : Output: Variable contains: test string

Note that this plugin was mostly provided for smarty compatibility, it is easier to do it with the = operator, just as in any language, using :