PHP code snippet – How to count the characters in laravel? Subash Chandran 7th November 2021 Leave a Comment <?php $str = 'abcdef'; echo strlen($str); // 6 $str = ' ab cd '; echo strlen($str); // 7 ?> Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Related See also Python code snippet - pandas How to start read csv at a certain row? Snippets PHP code snippet - How to count the characters in laravel? Change font size A Decrease font size. A Reset font size. A Increase font size.