IntlChar::charType

(PHP 7) Get the general category value for a code point public static int IntlChar::charType ( mixed $codepoint ) Returns the general category value for the code point. Parameters: codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}") Returns: Returns the general categor

IntlChar::chr

(PHP 7) Return Unicode character by code point value public static string IntlChar::chr ( mixed $codepoint ) Returns a string containing the character specified by the Unicode code point value. This function compliments IntlChar::ord(). Parameters: codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u

IntlChar::enumCharNames

(PHP 7) Enumerate all assigned Unicode characters within a range public static void IntlChar::enumCharNames ( mixed $start, mixed $limit, callable $callback [, int $nameChoice = IntlChar::UNICODE_CHAR_NAME ] ) Enumerate all assigned Unicode characters between the start and limit code points (start inclusive, limit exclusive) and call a function for each, passing the code point value and the character name. For Unicode 1.

IntlChar::charMirror

(PHP 7) Get the "mirror-image" character for a code point public static mixed IntlChar::charMirror ( mixed $codepoint ) Maps the specified character to a "mirror-image" character. For characters with the Bidi_Mirrored property, implementations sometimes need a "poor man's" mapping to another Unicode character (code point) such that the default glyph may serve as the mirror-image of the default glyph of the specified charac

IntlChar::charDirection

(PHP 7) Get bidirectional category value for a code point public static int IntlChar::charDirection ( mixed $codepoint ) Returns the bidirectional category value for the code point, which is used in the ยป Unicode bidirectional algorithm (UAX #9). Note: Some unassigned code points have bidi values of R or AL because they are in blocks that are reserved for Right-To-Left scripts. Parameters:

IntlChar::charDigitValue

(PHP 7) Get the decimal digit value of a decimal digit character public static int IntlChar::charDigitValue ( mixed $codepoint ) Returns the decimal digit value of a decimal digit character. Such characters have the general category "Nd" (decimal digit numbers) and a Numeric_Type of Decimal. Parameters: codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMA

IntlChar::charName

(PHP 7) Retrieve the name of a Unicode character public static string IntlChar::charName ( mixed $codepoint [, int $nameChoice = IntlChar::UNICODE_CHAR_NAME ] ) Retrieves the name of a Unicode character. Depending on nameChoice, the resulting character name is the "modern" name or the name that was defined in Unicode version 1.0. The name contains only "invariant" characters like A-Z, 0-9, space, and '-'. Unicode 1.0 name

IntlChar::charAge

(PHP 7) Get the "age" of the code point public static array IntlChar::charAge ( mixed $codepoint ) Gets the "age" of the code point. The "age" is the Unicode version when the code point was first designated (as a non-character or for Private Use) or assigned a character. This can be useful to avoid emitting code points to receiving processes that do not accept newer characters. Parameters:

IntlChar::charFromName

(PHP 7) Find Unicode character by name and return its code point value public static int IntlChar::charFromName ( string $characterName [, int $nameChoice = IntlChar::UNICODE_CHAR_NAME ] ) Finds a Unicode character by its name and returns its code point value. The name is matched exactly and completely. If the name does not correspond to a code point, FALSE is returned. A Unicode 1.0 name is matched only if it differs f

grapheme_substr

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Return part of a string int grapheme_substr ( string $string, int $start [, int $length ] ) Procedural style Return part of a string Parameters: string The input string. Must be valid UTF-8. start Start position in default grapheme units. If $start is non-negative, the returned string wi