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);
パラメータには1つの変数又は変数名を格納した配列を渡します。
Example 13.7. clearAssign()
<?php // ひとつの変数をクリアします $smarty->clearAssign('Name'); // 複数の変数をクリアします $smarty->clearAssign(array('Name', 'Address', 'Zip')); ?>
clearAllAssign()
、
clearConfig()
、
getTemplateVars()
、
assign()
および append()
も参照してください。