How to echo only certain character number in PHP? Subash Chandran 19th November 2021 Leave a Comment $temp = substr($temp, 0, 5); echo "$temp..."; 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 How to read data from firebase notification in Java? Snippets display only 10 characters in php, php 5 character number, php character number, php post character and number only, show 15 characters in string php Change font size A Decrease font size. A Reset font size. A Increase font size.