title: Truncate a string to first n characters of a string and add three dots if any characters are removed
body: <p>How can I get the first n characters of a string in PHP? What's the fastest way to trim a string to a specific number of characters, and append '...' if needed?</p>