title: how to limit number of words in a description in php?
body: <p>I want to display a small intro of with a limited number of words without cutting the last word if it is too long... 
  I know there is a php function substr() but it does not display the intro like "this is my starting text..." 
  It makes it say "this is my starting t..." in PHP.
  Thank you for any answer.</p>
  
  <pre><code>                    &lt;a href="#"&gt;'.substr($rows['title'],0,50).'&lt;/a&gt;
  </code></pre>