PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-clear-all-assign.md

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-clear-all-assign.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-clear-all-assign.md
Role: Example script
Content type: text/markdown
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 2 months ago
Size: 646 bytes
 

Contents

Class file image Download

clearAllAssign()

clears the values of all assigned variables

Description

void

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()