在 Smarty 3 中,我们正在使用
1 -{break}打破; 继续;关键词
2- {continue} 用于continue;关键字我为退出标签编写了自定义插件,与break
<?php
/*
* Modified for exit tag
*/
function smarty_compiler_exit( $contents, &$smarty ) {
return 'exit;';
}
?>
但是当我使用{exit}它时,它的输出为:- exit; only not working as php exit keyword