title: How to show limited words in php
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10137819/split-a-string-php">split a string PHP</a>  </p>
  </blockquote>
  
  
  
  <p>I am newbie in PHP.i have a string like:</p>
  
  <pre><code>$string="Once the Flash message has been set, I redirect the user to the form or a list of results. That is needed in order to get the flash working (you cannot just load the view in this case… well, you can but this method will not work in such case). When comparing $result TRUE or FALSE, please notice the different value for type. I am using type=message for successful messages, and type=error for error mesages.";
  </code></pre>
  
  <p>Now i want to show the limited words like 15 or 20 only.than how can i do it?</p>