Developer's Manual  Function Reference  Working with SiteSupra variables  setSupraValue

setSupraValue

Stores a variale in supra table.


void setSupraValue
(string variable_name, mixed variable)

Use the function if you need to save a variable for the future use. The function takes variable, runs gzSerialize and saves the variableâÀ™s value into supra table with the given variable_name. If the variable_name already exists its value is overwritten with the new value.

Example

<?
$var
= Array('new' => 0, 'id' => 1);
setSupraValue('clientData', $var);
?>
Please login to add comments.