PHP | IntlChar isdefined() Function Last Updated : 03 Nov, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report The IntlChar::isdefined() function is an inbuilt function in PHP which is used to check whether the code point is defined or not. The character is said to be determined if it is assigned a character. It is True for general categories other than Cn (other, not assigned). Syntax: bool IntlChar::isdefined ( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The $codepoint value is an integer values or character, which is encoded as a UTF-8 string. Return Value: This function returns True if $codepoint is a defined character, False otherwise. Below programs illustrate the IntlChar::isdefined() function in PHP: Program 1: php <?php // PHP function to illustrate // the use of IntlChar::isdefined() // Input data is character type var_dump(IntlChar::isdefined("A")); // Input data is character type var_dump(IntlChar::isdefined(" ")); // Input data is unicode character var_dump(IntlChar::isdefined("\u{FDD0}")); // Input data is string type var_dump(IntlChar::isdefined("XYZ")); // Input data is character type var_dump(IntlChar::isdefined("5")); ?> Output: bool(true) bool(true) bool(false) NULL bool(true) Program 2: php <?php // PHP code to illustrate IntlChar::isdefined() // Declare an array $arr $arr = array("G", "GeeksforGeeks", "^", "1001", "6", "\n", "\n\n", "\t"); // Loop run for every array element foreach ($arr as $val){ // Check each element as code point data var_dump(IntlChar::isdefined($val)); } ?> Output: bool(true) NULL bool(true) NULL bool(true) bool(true) NULL bool(true) Related Articles: PHP | IntlChar::charName() Function PHP | IntlChar::isupper() Function Reference: http://php.net/manual/en/intlchar.isdefined.php Comment More infoAdvertise with us Next Article PHP | IntlChar isMirrored() Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP PHP-function PHP-Intl +1 More Practice Tags : Misc Similar Reads PHP | IntlChar::isdigit() Function The IntlChar::isdigit() function is an inbuilt function in PHP which is used to determine the given input code data is a digited character or not. It returns true when the character is under the general category decimal digit numbers. Beginning with Unicode 4, this is the same as testing for the Num 2 min read PHP | IntlChar istitle() Function The IntlChar::istitle function is an inbuilt function in PHP which is used to check whether the input character code point is a titlecase letter or not. In True cases, the characters with the general category are "Lt" (titlecase letter).Syntax: bool IntlChar::istitle( $codepoint ) Parameters: This f 2 min read PHP | IntlChar::isprint() Function The IntlChar::isprint() function is an inbuilt function in PHP which is used to check whether the given input character is a printable character or not. Syntax: bool IntlChar::isprint( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The input paramete 2 min read PHP | IntlChar isMirrored() Function The IntlChar::isMirrored() function is an inbuilt function in PHP which is used to check the code point contains Bidi_Mirrored property or not. This property is used to set the characters that are commonly used in Right-To-Left contexts and need to be displayed with a mirrored graph. Syntax: bool In 2 min read PHP | IntlChar::isIDIgnorable() Function The IntlChar::isIDIgnorable() function is an inbuilt function in PHP which is used to determine the code point is an ignorable character or not. It is TRUE for characters with general category "Cf" (format controls) as well as non-whitespace ISO controls ( U+0000...U+0008, U+000E...U+001B, U+007F... 2 min read PHP | IntlChar::isIDPart() Function The IntlChar::isIDPart() function is an inbuilt function in PHP which is used to check whether the given input character is permissible in an identifier or not. It is True for characters with general category "L" (Letters), "Nd" (Decimal digits), "Nl" (letters numbers), "Mc" and "Mn"(Combining marks 2 min read Like