Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by karthikeya Boyini
Page 51 of 143
IntlChar getUnicodeVersion() function in PHP
The IntlChar getUnicodeVersion() function is used to get the Unicode version that the ICU library is using. It returns an array containing version numbers that represent the Unicode standard version. Syntax array IntlChar::getUnicodeVersion() Parameters This function takes no parameters. Return Value The IntlChar getUnicodeVersion() function returns an array containing four integers representing the Unicode version number in the format [major, minor, micro, update]. Example The following example demonstrates how to get the Unicode version ? The output of the above code is ? ...
Read MoreIntlChar getBidiPairedBracket() function in PHP
The IntlChar::getBidiPairedBracket() function returns the paired bracket character for a given Unicode character. This function is useful when working with bidirectional text processing where you need to find the matching bracket for proper text rendering. Syntax IntlChar::getBidiPairedBracket(mixed $codepoint) Parameters codepoint − An integer codepoint value or a character encoded as a UTF-8 string. Return Value Returns the mapped paired bracket character as a string, or the original character if no paired bracket exists. Returns NULL for invalid input. Example The following example demonstrates how to find paired brackets ...
Read MoreIntlChar charType() function in PHP
The IntlChar::charType() function determines the general Unicode category of a character. This function is part of PHP's Intl extension and helps classify characters according to Unicode standards. Syntax int IntlChar::charType(mixed $codepoint) Parameters $codepoint − An integer codepoint value or a character/string encoded as UTF-8. Return Value Returns an integer representing the general category. Common categories include − IntlChar::CHAR_CATEGORY_UPPERCASE_LETTER − Uppercase letters (A-Z) IntlChar::CHAR_CATEGORY_LOWERCASE_LETTER − Lowercase letters (a-z) IntlChar::CHAR_CATEGORY_DECIMAL_DIGIT_NUMBER − Decimal digits (0-9) IntlChar::CHAR_CATEGORY_OTHER_PUNCTUATION − Punctuation marks IntlChar::CHAR_CATEGORY_MATH_SYMBOL − Mathematical symbols IntlChar::CHAR_CATEGORY_CURRENCY_SYMBOL − Currency symbols IntlChar::CHAR_CATEGORY_SPACE_SEPARATOR − Space characters ...
Read MoreIntlChar tolower() function in PHP
The IntlChar::tolower() function converts a Unicode character to its lowercase equivalent. This function is part of PHP's Intl extension and works with Unicode codepoints and UTF-8 encoded characters. Syntax IntlChar::tolower(mixed $codepoint) Parameters codepoint − An integer representing a Unicode codepoint value, or a character encoded as a UTF-8 string. Return Value The function returns the lowercase equivalent of the given character. If the character is already lowercase or has no lowercase mapping, the same character is returned. Returns NULL on failure or for invalid input. Example The following ...
Read MoreIntlChar isMirrored() function in PHP
The IntlChar::isMirrored() function is used to check whether a character has the Bidi_Mirrored property, which indicates if the character is mirrored in bidirectional text (like Arabic or Hebrew). Syntax bool IntlChar::isMirrored(mixed $codepoint) Parameters codepoint − An integer codepoint value or a character encoded as a UTF-8 string. Return Value Returns TRUE if the character has the Bidi_Mirrored property, FALSE otherwise. Example The following example demonstrates checking various characters for the Bidi_Mirrored property − Output bool(true) bool(true) bool(false) bool(false) bool(true) bool(true) ...
Read MoreIntlChar::islower() function in PHP
The IntlChar::islower() function checks whether the given input character is a lowercase character or not. Syntax bool IntlChar::islower(val) Parameters val − A character encoded as a UTF-8 string or an integer codepoint value. Return Value The IntlChar::islower() function returns TRUE if the entered value is a lowercase character, FALSE otherwise. Example The following example demonstrates how to check if characters are lowercase − The output of the above code is − bool(true) bool(false) bool(true) bool(false) bool(false) Using Unicode Codepoints ...
Read MoreIntlChar::isUAlphabetic() function in PHP
The IntlChar::isUAlphabetic() function is used to check whether the entered value is an Alphabetic Unicode character or not. This function is part of PHP's Internationalization extension and follows Unicode standards for character classification. Syntax IntlChar::isUAlphabetic(val) Parameters val − A character or integer value encoded as a UTF-8 string, or an integer codepoint value. Return Value The IntlChar::isUAlphabetic() function returns TRUE if the value is an Alphabetic Unicode character, FALSE otherwise, or NULL on failure. Example The following example demonstrates checking various characters ? ...
Read MoreIntlChar::isIDStart() function in PHP
The IntlChar::isIDStart() function is used to check whether the entered character is permissible as the first character of an identifier or not. Syntax bool IntlChar::isIDStart(mixed $codepoint) Parameters $codepoint − A character or integer value encoded as a UTF-8 string, or an integer representing a Unicode code point. Return Value The IntlChar::isIDStart() function returns TRUE if the value is a character that can be used as the first character of an identifier, FALSE otherwise. Returns NULL on failure. Example The following example demonstrates checking various characters for identifier start ...
Read MoreIntlChar::isIDPart() function in PHP
The IntlChar::isIDPart() function is used to check whether a given character can be part of an identifier in programming languages. This function follows Unicode standards to determine if a character is valid for use in identifiers. Syntax bool IntlChar::isIDPart(mixed $codepoint) Parameters codepoint − A character value encoded as a UTF-8 string or an integer representing the Unicode code point. Return Value The IntlChar::isIDPart() function returns TRUE if the character can be part of an identifier, FALSE otherwise, or NULL on failure. Example The following example demonstrates how to ...
Read MoreIntlChar::isISOControl() function in PHP
The IntlChar::isISOControl() function is used to check whether the entered value is an ISO control code character or not. ISO control characters are non-printing characters in the range U+0000-U+001F (C0 controls) and U+007F-U+009F (C1 controls). Syntax IntlChar::isISOControl(mixed $codepoint): ?bool Parameters codepoint − A character or integer value encoded as a UTF-8 string, or an integer representing a Unicode code point. Return Value The IntlChar::isISOControl() function returns TRUE if the entered value is an ISO control code character, FALSE otherwise, or NULL on failure. Example ...
Read More