title: how to chop of a text in a certain length with php?
body: <p>i wanna get some field values from database and present them on html.</p>
  
  <p>but some of them are longer than the div width so i wanted to chop if of and add 3 dots after them if they are longer than lets say 30 characthers.</p>
  
  <pre><code>windows vs mac os x-&gt; windows vs m...
  threads about windows vista -&gt; threads about win...
  </code></pre>
  
  <p>how can i do that?</p>