title: php rtrim until specific character
body: <p>I would like to do a sort of a rtrim on a string until a specific character like a " " (space)</p>
  
  <p>input: "Lorem ipsum dolor sit amet, consectetur adipiscing el"</p>
  
  <p>output: "Lorem ipsum dolor sit amet, consectetur adipiscing"</p>
  
  <p>Tried several things but they all seem to work the other way around...</p>
  
  <p>Thanks in Advance</p>
  
  <p>Peter</p>