PHP | IntlChar::isJavaSpaceChar() Function Last Updated : 11 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report The IntlChar::isJavaSpaceChar() function is an inbuilt function in PHP which is used to check whether the input character code point is a space character or not according to Java. Its value is True for characters with general category "Z" (Separators), which does not include control character.Syntax: bool IntlChar::isJavaSpaceChar( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The input parameter $codepoint is a character or integer value, which is encoded as a UTF-8 string.Return Value: Returns True, if $codepoint is space character according to java, otherwise return False.Below programs illustrate the IntlChar::isJavaSpaceChar() Function in PHP:Program 1: php <?php // PHP function to illustrate the // use of IntlChar::isJavaSpaceChar() // Input control character codepoint value var_dump(IntlChar::isJavaSpaceChar("\n")); // Input control character codepoint value var_dump(IntlChar::isJavaSpaceChar("\r")); // Input string codepoint value with // Capital and small letter var_dump(IntlChar::isJavaSpaceChar("V")); // Input int char an identifier // of codepoint value var_dump(IntlChar::isJavaSpaceChar("\u{00A0}")); // Input symbolic space codepoint value var_dump(IntlChar::isJavaSpaceChar(" ")); // Input symbolic codepoint value var_dump(IntlChar::isJavaSpaceChar(" ^ ")); // Input string codepoint value var_dump(IntlChar::isJavaSpaceChar("Bug")); // Input int codepoint value var_dump(IntlChar::isJavaSpaceChar("3 ")); ?> Output: bool(false) bool(false) bool(false) bool(true) bool(true) NULL NULL NULL Program 2: php <?php // PHP function to illustrate the // use of IntlChar::isJavaSpaceChar() // Declare an array with // different codepoint value $arr = array("\\", " ", "\n", " #", "\t", ); // For loop condition to check // each character through function foreach ($arr as $val) { // Check each element as code point data var_dump(IntlChar::isJavaSpaceChar($val)); } ?> Output: bool(false) bool(true) bool(false) NULL bool(false) Related Articles: PHP | IntlChar::isJavaIDPart() FunctionPHP | IntlChar::isIDStart() FunctionPHP | IntlChar::isIDPart() Function Reference: https://www.php.net/manual/en/intlchar.isjavaspacechar.php Comment More infoAdvertise with us Next Article PHP | IntlChar::isalpha() Function J jit_t Follow Improve Article Tags : PHP PHP-function PHP-Intl Similar Reads PHP | IntlChar::isspace() Function The IntlChar::isspace() function is an inbuilt function in PHP which is used to check whether the given input character is a space character or not. Syntax: bool IntlChar::isspace( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The input parameter is 2 min read PHP | IntlChar::isJavaIDStart() Function The IntlChar::isJavaIDStart() function is an inbuilt function in PHP which is used to check whether the input character code point is permissible since the first character is a java identifier or not. It is True for characters with general category "Sc" (Currency Symbols), and "Pc" (Connecting Punct 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::isbase() Function 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 " 2 min read PHP | IntlChar::isWhitespace() Function The IntlChar::isWhitespace() function is an inbuilt function in PHP which is used to check whether the given input character is a WhiteSpace character or not according to ICU. IntlChar access number utility function and used to access the information about Unicode Characters. The White Space charact 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 Like