title: PHP have string 200 characters long and then cut off at last white space
body: <p>I am working on this piece of code that will take my string and make it 200 characters long and then after that remove the last white space so my string will look like this 'This is my' instead of 'This is my stri'</p>
  
  <p>This is what I got thus far:</p>
  
  <pre><code>$description = substr($value['description'], 0, 200);
  </code></pre>
  
  <p>and now I want it to remove the last white space in the string. After googleing it, all I found was the php trim function, but nothing about removing the last one, just all..</p>
  
  <p>any tips?</p>