PHP IntlChar::isbase() Function Last Updated : 03 Apr, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report PHP IntlChar::isbase() function is an inbuilt function in PHP that is used to check whether the given input data is a base character or not. If the specified code point is a base character then it returns TRUE for general categories "L" (Letters), "N" (numbers), "Mc" (spacing combining marks), and "Me" (enclosing marks). Syntax: bool IntlChar::isbase( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The input parameter is an integer or character, which is encoded as a UTF-8 string. Return Value: If $codepoint is the base character then it returns TRUE, otherwise return FALSE. Examples: Input :(IntlChar::isbase("D")) Output : bool(true) Input : (IntlChar::isbase("*")) Output : bool(false) Input :(IntlChar::isbase("9")); Output :bool(true) Below examples illustrate the IntlChar::isbase() Function in PHP: Example 1: php <?php // PHP code to illustrate IntlChar::isbase() // Function // Input data is character type var_dump(IntlChar::isbase("D")); // Input data is string type var_dump(IntlChar::isbase("Geeksforgeeks")); // Input data is integer type var_dump(IntlChar::isbase("234")); // Input data is special character type var_dump(IntlChar::isbase("*")); ?> Output: bool(true) NULL NULL bool(false) Example 2: php <?php //PHP code to illustrate IntlChar::isbase() // Declare an array $arr $arr = array("4", "20001111", "^", " ", "*", "GeeksforGeeks"); // Loop run for every array element foreach ($arr as $val){ // Check each element as code point data var_dump(IntlChar::isbase($val)); } ?> Output: bool(true) NULL bool(false) NULL bool(false) NULL Related Articles: PHP | IntlChar::isdigit() FunctionPHP | IntlChar::isblank() Function Reference: http://php.net/manual/en/intlchar.isbase.php Comment More infoAdvertise with us Next Article PHP | IntlChar::isalpha() Function J jit_t Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Intl Similar Reads PHP | IntlChar::isblank() Function The IntlChar::isblank() function is an inbuilt function in PHP which is used to determine the given input code data is blank or horizontal space character and the character visible separates words on a line. If the input contains U+0009 (TAB) and characters "Zs" (space separators) except Zero Width 2 min read PHP | IntlChar::isalnum () Function The IntlChar::isalnum() function is an inbuilt function in PHP which is used to check the given input is an alphanumeric character (Digit or Letter) or not. It returns TRUE for characters with general categories "L" (letters) and "Nd" (decimal digit numbers). Syntax: bool IntlChar::isalnum( $codepoi 2 min read PHP | IntlChar::isalpha() Function The IntlChar::isalpha() function is an inbuilt function in PHP which is used to check the given input is an alphanumeric character or not. Syntax: bool IntlChar::isalpha( $codepoint ) Parameters: The IntlChar::isalpha() function accept single parameter $codepoint which is mandatory. The input parame 1 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 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::islower() Function The IntlChar::islower() function is an inbuilt function in PHP which is used to check whether the given input character is a lowercase character or not. Syntax: bool IntlChar::islower( $codepoint ) Parameter: This function accepts a single parameter $codepoint which is mandatory. The input parameter 2 min read Like