SimpleHistory::ends_with PHP Method

ends_with() public static method

Returns true if $haystack ends with $needle
public static ends_with ( string $haystack, string $needle )
$haystack string
$needle string
    public static function ends_with($haystack, $needle)
    {
        return $needle === substr($haystack, -strlen($needle));
    }
SimpleHistory