
一、随机颜色:

使用:
把文件上传到/application/common/fun,
方法:
16进制随机颜色:{:fun('Custfun@randcolor')}rgb颜色:{:fun('Custfun@randcolor',true)}带透明度:{:fun('Custfun@randcolor',true,0.6)}模板使用:
style="background:{:fun('Custfun@randcolor')}"style="color:{:fun('Custfun@randcolor')}"二、隐藏字符串

使用:
1.默认:
{:fun('Custfun@ycstr',$rs.title)}//从第三个字符开始隐藏,隐藏四个字符,显示4个*号;
2.自定义:
{:fun('Custfun@ycstr',$rs.title,3,3,2)}
3,3,2分别表示从第几个字符开始隐藏,隐藏几个字符,显示几个*号
三、过滤行内样式
{:fun('Custfun@ghtml',$info.full_content)}题外话:https://x1.php168.com/bbs/show-10218.html这篇帖子的下一期,已经等了两年