title: PHP: properly truncating strings with ".."
body: <p>Currently, the method I use to truncate strings is: <code>echo substr($message, 0, 30)."..";</code></p>
  
  <p>How do I show the dots only in the case that the string has been truncated?</p>