title: is there a PHP function to find a middle string?
body: <p>Ok to be clear ill give an example</p>
  
  <pre><code>$email  = 'name@example.com';
  $domain = strstr($email, '@');
  echo $domain; // prints @example.com
  
  $user = strstr($email, '@', true); // As of PHP 5.3.0
  echo $user; // prints name
  </code></pre>
  
  <p>as it says, it prints what before '@' using true, and blank to print what follows @</p>
  
  <p>im looking for a function to print  @ itself by giving it 2 strings and grab what between them</p>
  
  <p>like this</p>
  
  <pre><code>  $string= 'someXthing';
    $tograb = phpfunction("some","thing");
    echo $tograb; // should be printing X
  </code></pre>
  
  <p>^ this doesnt work, im just writing it to explain</p>