src/PhoneNumberMatcher.php
public static function isLatinLetter($letter)
    {
        // Combining marks are a subset of non-spacing-mark.
        if (preg_match('/\p{L}/u', $letter) !== 1 && preg_match('/\p{Mn}/u', $letter) !== 1) {
            return false;
        }

        return (preg_match('/\p{Latin}/u', $letter) === 1)
        || (preg_match('/\pM+/u', $letter) === 1);
    }
public static function isLatinLetter($letter)
    {
        // Combining marks are a subset of non-spacing-mark.
        if (preg_match('/\p{L}/u', $letter) !== 1 && preg_match('/\p{Mn}/u', $letter) !== 1) {
            return false;
        }

        return (preg_match('/\p{Latin}/u', $letter) === 1)
        || (preg_match('/\pM+/u', $letter) === 1);
    }
public static function isLatinLetter ( $ letter ) { // Combining marks are a subset of non-spacing-mark. if ( preg_match ( '/\p{L}/u' , $ letter ) !== 1 && preg_match ( '/\p{Mn}/u' , $ letter ) !== 1 ) { return false ; } return ( preg_match ( '/\p{Latin}/u' , $ letter ) === 1 ) || ( preg_match ( '/\pM+/u' , $ letter ) === 1 ) ; }
Helper method to determine if a character is a Latin-script letter or not. For our purposes,
combining marks should also return true since we assume they have been added to a preceding
Latin character.

@param string $letter
@return bool
@internal
Helper method to determine if a character is a Latin - script letter or not . For our purposes combining marks should also return true since we assume they have been added to a preceding Latin character .