WordPress.org

Support

Support » How-To and Troubleshooting » How to use strlen with the_title()?

How to use strlen with the_title()?

  • Hi,

    I’m trying to use strlen to get the number of characters in the title of the post.

    What is wrong with this code?

    <?php
    
    $sss = the_title();
    echo strlen($sss);
    ?>

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to use strlen with the_title()?’ is closed to new replies.