迅睿CMS文章内容页面“本文有XX个文字,预计阅读时间XX分钟”的写法
迅睿标签
迅睿函数大全迅睿基础设置迅睿二次开发迅睿模版制作迅睿缓存在线生成迅睿CMS标签大全

具体写法
{php}
$me = dr_html2text($content);
$strlen = ceil(mb_strwidth($me) / 3);
$kb = ceil(strlen($me) / 1024);
$read_time = ceil($strlen / 400);
echo "本文有" . $strlen . "个文字,预计阅读时间" . $read_time . "分钟";
{/php} 本文属原创,转载请注明原文:https://www.zhimatong.com/jiaocheng/881.html
为保证教程的实用性及扩大知识面覆盖,如果您有相似问题而未解决,可联系在线客服免费技术支持。
内容有用



交流群
购物车