PHP | IntlChar::isdigit() Function Last Updated : 29 Jul, 2021 Comments Improve Suggest changes Like Article Like Report 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 Numeric_Type of Decimal. Syntax: bool IntlChar::isdigit ( $codepoint ) Parameters: This function accepts a single parameter as mentioned above and described below: $codepoint : The input parameter $input_codepoint is an integer or character, which is encoded as a UTF-8 string. Return Value: If $codepoint data is digit character then return True otherwise return False.Examples: Input : $codepoint = "X" Output : bool(false) Input : $codepoint = "7" Output : bool(true) Below programs illustrate the IntlChar::isdigit() function in PHP:Program 1: php <?php // PHP code to illustrate the // IntlChar::isdigit() function. // single digit var_dump(IntlChar::isdigit("5")); // number cases var_dump(IntlChar::isdigit("5555")); // float number var_dump(IntlChar::isdigit("15.08")); // big number var_dump(IntlChar::isdigit("12e")); ?> Output: bool(true) NULL NULL NULL Program 2: php <?php // PHP code to illustrate the // IntlChar::isdigit() function. // alphabet cases var_dump(IntlChar::isdigit("G")); // in space cases var_dump(IntlChar::isdigit(" ")); // new line cases var_dump(IntlChar::isdigit("\n")); // string cases var_dump(IntlChar::isdigit("Geeks ")); // symbol cases var_dump(IntlChar::isdigit("@")); ?> Output: bool(false) bool(false) bool(false) NULL bool(false) Program 3: php <?php // PHP code to illustrate the // IntlChar::isdigit() function. var_dump(IntlChar::isdigit("0")); var_dump(IntlChar::isdigit(' ')); ?> Output: bool(true) bool(false) References: http://php.net/manual/en/intlchar.isdigit.php Comment More infoAdvertise with us Next Article PHP | IntlChar::isdigit() Function jit_t Follow Improve Article Tags : Web Technologies PHP PHP-function Similar Reads PHP | IntlChar::isxdigit() Function The IntlChar::isxdigit() function is an inbuilt function in PHP which is used to check whether the given input character is a hexadecimal digit or not. It is TRUE for decimal digit numbers (0 - 9), Latin letters (a - f) and (A - F) in both ASCII and Fullwidth ASCII (Letters with codepoint \u{0041} t 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 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::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 PHP | IntlChar::isIDStart() Function The IntlChar::isIDStart() function is an inbuilt function in PHP which is used to check whether the given input character code point is permissible since the first character is an identifier or not. It is True for characters with general category "L" (Letters), and "Nl" (letters numbers). Syntax: bo 2 min read PHP | IntlChar isdefined() Function 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::isdefi 2 min read PHP | IntlChar::ispunct() Function The IntlChar::ispunct() function is an inbuilt function in PHP which is used to check whether the given input character is a punctuation character or not. Syntax: bool IntlChar::ispunct( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The input parame 2 min read PHP | IntlChar::iscntrl() Function The IntlChar::iscntrl() function is an inbuilt function in PHP which is used to check the given input is a control character or not. Control characters are line feed, tab, escape, etc. A control character is one of the following types: ISO 8-bit control character (U+0000..U+001f and U+007f..U+009f)I 2 min read PHP | IntlChar isgraph() Function The IntlChar::isgraph() function is an inbuilt function in PHP which is used to check the code point is a graphic character or not. It returns True for all characters except those with general categories Cc(control codes), Cf(format controls), Cs(surrogates), Cn(unassigned), and Z(separators). Synta 2 min read PHP IntlChar::ord() Function The IntlChar::ord() function is an inbuilt function in PHP which is used to return the Unicode code point value of the given character. Syntax: int IntlChar::ord( $character ) Parameters: This function accepts a single parameter $character which is mandatory. This parameter is a Unicode character. R 2 min read Like