public static function equals(string $string1, string $string2, bool $caseSensitive = true)
    {
        if ($caseSensitive) {
            return $string1 === $string2;
        }

        return strtolower($string1) === strtolower($string2);
    }
public static function equals(string $string1, string $string2, bool $caseSensitive = true)
    {
        if ($caseSensitive) {
            return $string1 === $string2;
        }

        return strtolower($string1) === strtolower($string2);
    }
public static function equals ( string $ string1 , string $ string2 , bool $ caseSensitive = true ) { if ( $ caseSensitive ) { return $ string1 === $ string2 ; } return strtolower ( $ string1 ) === strtolower ( $ string2 ) ; }
Compare two strings for identically

@param string $string1
@param string $string2
@param bool   $caseSensitive Optional. Default: true

@return bool
Compare two strings for identically