What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
clearAssign() — 清除赋值
void clearAssign(mixed var);
可以指定一个单独的值,或是一个数组。
Example 14.10. clearAssign()
<?php // 清除一个值 $smarty->clearAssign('Name'); // 清除多个值 $smarty->clearAssign(array('Name', 'Address', 'Zip')); ?>
参见
clearAllAssign()
,
clearConfig()
,
getTemplateVars()
,
assign()
和 append()