本篇文章给大家带来的内容是关于tp5.1在view中使用函数 的方法(代码),有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
assign('email','1047588430@qq.com');
$this->assign('time',time());
$this->assign('user','cjk');
return $this->fetch();
}
}在view中使用{$变量名|函数}
Document {$email} : {$email|md5}
{$email} : {$email|md5|strtoupper}
{$email} : {$email|substr=0,10}
相关推荐:










