public static function getBetween(string $var1, string $var2, string $pool) : string
    {
        $temp1 = strpos($pool, $var1) + strlen($var1);
        $result = substr($pool, $temp1, strlen($pool));
        $dd = strpos($result, $var2);
        if ($dd == 0) {
            $dd = strlen($result);
        }

        return substr($result, 0, $dd);
    }
public static function getBetween(string $var1, string $var2, string $pool) : string
    {
        $temp1 = strpos($pool, $var1) + strlen($var1);
        $result = substr($pool, $temp1, strlen($pool));
        $dd = strpos($result, $var2);
        if ($dd == 0) {
            $dd = strlen($result);
        }

        return substr($result, 0, $dd);
    }
public static function getBetween ( string $ var1 , string $ var2 , string $ pool ) : string { $ temp1 = strpos ( $ pool , $ var1 ) + strlen ( $ var1 ) ; $ result = substr ( $ pool , $ temp1 , strlen ( $ pool ) ) ; $ dd = strpos ( $ result , $ var2 ) ; if ( $ dd == 0 ) { $ dd = strlen ( $ result ) ; } return substr ( $ result , 0 , $ dd ) ; }
Get a string between two substrings.

@author Erik Campobadal Fores <soc@erik.cat>
@copyright 2017 erik.cat
@param string $var1
@param string $var2
@param string $pool
@return string
Get a string between two substrings .