Get Smarty

Donate

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Buy cheap glasses from Cheapglasses123.com and save up to 80%.

Where to buy prescription glasses? EyewearCanada.com is your best choice!

Advertisement

Name

clearAllAssign() — 清除全部赋值

说明

void clearAllAssign();

Example 14.8. clearAllAssign()


<?php
// 传递键值对
$smarty->assign('Name', 'Fred');
$smarty->assign('Address', $address);

// 显示上面的值
print_r( $smarty->getTemplateVars() );

// 清除全部的值
$smarty->clearAllAssign();

// 什么也不显示
print_r( $smarty->getTemplateVars() );

?>

   

参见 clearAssign(), clearConfig(), getTemplateVars(), assign()append()

Comments
No comments for this page.

Advertisement