title: Remove Parts of String in php
body: <p>is there any way to do this in PHP?</p>
  <pre><code>$first_string = &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;;
  $second_strong = &quot;GHIJKLM&quot;;
  function str_slayer($first_string, $second_string ){
    //doing some stuff
    return $data// return &quot;ABCDEFNOPQRSTUVWXYZ&quot;;
  }
  </code></pre>
  <p>it means I want a PHP function with two string parameters. 2nd parameter is a part of 1st parameter. the function will cut the 2nd string part from the 1st string and the rest of the 1st string will return.</p>
  <p>thanks for your attention.</p>