title: PHP Remove string after a certain character to before character
body: <pre><code>$text= "This is a text1 i want to replace before # text2 i want to replace 
  before # text3"
  
  Start point ="text1"
  End point = "#"
  Replace= "@@@@@@"
  </code></pre>
  
  <p>Note "i want to replace before" is changeable sentence
  Result will be "This is a @@@@@@ text2 i want to remove before # text3"</p>