I don't believe there is a "built-in" function for what you want, but you can use ereg() for what you want, here is a quick little function to do what you want. Hope this helps.
function in_string($string, $start, $end)
{
ereg($start.".*".$end, $string, $block);
$startlen = strlen($start);
$endlen = strlen($end);
return substr($block[0], $startlen, -$endlen);
}
Here is an example of how to use:
$string = "say this is my string that I want to cut down";
$cutdown = in_string($string, "this", "want");
Now $cutdown will contain:
" is my string that I "
Hope this helps ya...
Derek