Open In App

PHP | IntlChar::isJavaSpaceChar() Function

Last Updated : 23 Apr, 2021
Comments
Improve
Suggest changes
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: 
 

Output: 
 

bool(false) 
bool(false) 
bool(false) 
bool(true) 
bool(true) 
NULL 
NULL 
NULL 


Program 2: 
 

Output: 
 

bool(false)
bool(true)
bool(false)
NULL
bool(false)


Related Articles: 
 


Reference: http://php.net/manual/en/intlchar.isjavaspacechar.php
 


Next Article
Article Tags :

Similar Reads