PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Name

clearAllAssign() — clears the values of all assigned variables

Description

void clearAllAssign();

Example 170. clearAllAssign()



<?php
// passing name/value pairs
$smarty->assign('Name''Fred');
$smarty->assign('Address'$address);

// will output above
print_r$smarty->getTemplateVars() );

// clear all assigned variables
$smarty->clearAllAssign();

// will output nothing
print_r$smarty->getTemplateVars() );

?>

   

See also clearAssign(), clearConfig(), getTemplateVars(), assign() and append()

Smarty Template Engine