Articles on Trending Technologies

Technical articles with clear explanations and examples

IntlChar::isIDPart() function in PHP

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 141 Views

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 More

IntlChar::isISOControl() function in PHP

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 130 Views

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

IntlChar::isIDIgnorable() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 142 Views

The IntlChar::isIDIgnorable() function is used to determine whether the entered character is an ignorable character in Unicode identifiers or not. Ignorable characters are those that should be ignored when parsing identifiers in programming languages. Syntax bool IntlChar::isIDIgnorable(mixed $codepoint) Parameters codepoint − A character or integer value encoded as UTF-8 string, or an integer representing the Unicode code point. Return Value The IntlChar::isIDIgnorable() function returns TRUE if the character is an ignorable character, FALSE otherwise. Returns NULL on failure. Example The following example demonstrates how to check various characters ...

Read More

IntlChar::charAge() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 214 Views

The IntlChar::charAge() function is used to compute the age of a Unicode character, which represents the Unicode version when the character was first designated or assigned. Syntax array IntlChar::charAge( mixed $codepoint ) Parameters codepoint − A character or integer value encoded as a UTF-8 string, or an integer representing the Unicode code point. Return Value The IntlChar::charAge() function returns an array containing the Unicode version number as four integers representing [major, minor, micro, update]. Returns null on failure. Example The following example demonstrates how to get the Unicode ...

Read More

IntlChar::charName() function in PHP

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 186 Views

The IntlChar::charName() function gets the name of a Unicode character. This is useful for identifying characters by their official Unicode names. Syntax string IntlChar::charName( val [, choice = IntlChar::UNICODE_CHAR_NAME] ) Parameters val − An integer value or character encoded as UTF-8 string. choice − The following are the constant conditions − IntlChar::UNICODE_CHAR_NAME ...

Read More

IntlChar::isUUppercase() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 141 Views

The IntlChar::isUUppercase() function checks whether the given input character is an Uppercase Unicode character or not. Syntax IntlChar::isUUppercase(val) Parameters val − It is a character value, which is encoded as a UTF-8 string or Unicode codepoint integer. Return Value The IntlChar::isUUppercase() function returns TRUE if the val is an Uppercase Unicode character, FALSE otherwise. Returns NULL if the input is invalid. Example 1 The following example demonstrates basic usage with different character types ? bool(false) NULL bool(true) Example 2 ...

Read More

IntlChar::ispunct() function in PHP

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 148 Views

The IntlChar::ispunct() function checks whether the given input character is a punctuation character or not. This function is part of PHP's Intl extension and follows Unicode standards for character classification. Syntax bool IntlChar::ispunct(mixed $val) Parameters val − An integer value or character encoded as a UTF-8 string. This parameter is required. Return Value The IntlChar::ispunct() function returns TRUE if the value is a punctuation character, FALSE otherwise. Returns NULL on failure. Example 1 The following example demonstrates checking various characters ? The output ...

Read More

IntlChar::iscntrl() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 167 Views

The IntlChar::iscntrl() function is used to check whether the given input is a control character or not. Control characters are special characters that don't have a visual representation, such as line feed (), tab (\t), carriage return (\r), etc. Syntax IntlChar::iscntrl( val ) Parameters val − An integer value or character encoded as a UTF-8 string. Return Value The IntlChar::iscntrl() function returns TRUE if the value is a control character, FALSE otherwise, or NULL on failure. Example 1 The following example checks various characters for control character status ...

Read More

IntlChar::isprint() function in PHP

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 183 Views

The IntlChar::isprint() function checks whether a given Unicode character is a printable character or not. A printable character is one that can be displayed and is not a control character. Syntax IntlChar::isprint( val ) Parameters val − An integer codepoint value or a single character encoded as a UTF-8 string. Required! Return Value The IntlChar::isprint() function returns TRUE if the character is printable, FALSE if not printable, or NULL on failure (invalid input). Example 1: Testing Single Characters The following example tests various single characters ? ...

Read More

IntlChar::isalnum() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 211 Views

The IntlChar::isalnum() function is used to check whether a given input character is alphanumeric or not. An alphanumeric character is either a digit (0-9) or a letter (A-Z, a-z). Syntax bool IntlChar::isalnum(mixed $codepoint) Parameters codepoint − An integer value or a single character encoded as a UTF-8 string to check. Return Value The IntlChar::isalnum() function returns TRUE if the codepoint is an alphanumeric character, FALSE otherwise, or NULL on failure. Example 1 The following example demonstrates checking various characters ? ...

Read More
Showing 1–10 of 61,284 articles
« Prev 1 2 3 4 5 6129 Next »
Advertisements