home page Site building tutorial Zblog website establishment text

How to count the number of words in a zblog topic

The zblog topic counts the number of words in the article. The implementation is relatively simple and straightforward. In essence, it is php to count the number of words in the string. Place the following code anywhere you need on the zblogphp article details page ..

Zblog topic It is simple and direct to count the number of words in an article. Essentially, it is PHP to count the number of words in a string zblogphp The article details page can be located wherever needed

 {php} $umContent=trim(Transfer html ($article->Content,'[nohtml]')); //Filter the html tag first echo  icon v_strlen($umContent, 'utf-8'); //Number of output statistics words {/php}
Related Babies (Click me to change a batch)
    Reward
    poster

    Statement: Some of the resources on this site are original works on the site, and some are publicly shared and collated based on the Internet. The copyright belongs to the original author.
    If it infringes your rights, please contact our website, and we will deal with it as soon as possible. Thank you. Please indicate the source of the transfer

    Link to this article: https://www.umtheme.com/zblog/161.html

    Related recommendations

     The list of zblog custom categories is sorted by browsing volume, comments, update time, ID or author

    The list of zblog custom categories is sorted by browsing volume, comments, update time, ID or author

    ZBLOG provides rich interfaces to facilitate the personalized customization of webmasters, so it is easy to reorder articles. For example, it may be necessary to adjust the default sorting of the system during the development and production process (the latest one is first), so that the list of articles under a certain category on its website is based on the specified (browse volume
    Zblog website establishment 2022.10.16 zero three thousand eight hundred and sixteen
    Post comments

    Thank you for your support