Mine
public text v1 · immutablefunction FindText($string, $start, $end)
{
$pos = strpos($string, $start);
if($pos >= 0)
{
$pos2 = strpos($string, $end, $pos);
if($pos2 >= $pos)
{
return substr($string, $pos, $pos2 - $pos);
}
}
}