clear_assign

void clear_assign (string var)

This clears the value of an assigned variable. This can be a single value, or an array of values.

Пример 13-7. clear_assign

// clear a single variable
$smarty->clear_assign("Name");

// clear multiple variables
$smarty->clear_assign(array("Name","Address","Zip"));