title: Add ... if string is too long PHP
body: <p>I have a description field in my MySQL database, and I access the database on two different pages, one page I display the whole field, but on the other, I just want to display the first 50 characters.  If the string in the description field is less than 50 characters, then it won't show ... , but if it isn't, I will show ... after the first 50 characters.</p>
  
  <p>Example (Full string):</p>
  
  <pre><code>Hello, this is the first example, where I am going to have a string that is over 50 characters and is super long, I don't know how long maybe around 1000 characters. Anyway this should be over 50 characters now ...
  </code></pre>
  
  <p>Exmaple 2 (first 50 characters):</p>
  
  <pre><code>Hello, this is the first example, where I am going ...
  </code></pre>