How to Truncate a String in PHP? April 17, 2021 php, string No Comments The following is a PHP Function that allows us to truncate a string (and optionally appended with suffix e.g. dots) if the length exceeded the threshold. Otherwise, the function … [Continue Reading...]