setVariable()

setVariable() -- Sets a variable value.

Synopsis

require_once 'HTML/Template/Sigma.php';

void HTML_Template_Sigma::setVariable (mixed $variable [, string $value = ''])

Description

Sets a variable value. The function can be used either like setVariable("varname", "value") or with one array $variables["varname"] = "value" given setVariable($variables)

Paramètres

mixed $variable

variable name or array ('varname'=>'value')

chaîne de caractères $value

variable value if $variable is not an array

Valeurs renvoyées

throws no exceptions thrown

Note

Cette fonction ne peut pas être appelée de façon statique.