Ok to be clear ill give an example
$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
as it says, it prints what before '@' using true, and blank to print what follows @
im looking for a function to print @ itself by giving it 2 strings and grab what between them
like this
$string= 'someXthing';
$tograb = phpfunction("some","thing");
echo $tograb; // should be printing X
^ this doesnt work, im just writing it to explain