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.
bool IntlChar::isJavaSpaceChar( $codepoint )
Parameters: This function accepts single parameter $codepoint which is mendatory. The input parameter $codepoint is a character or interger 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:
bool(false) bool(false) bool(false) bool(true) bool(true) NULL NULL NULL
bool(false) bool(true) bool(false) NULL bool(false)
- PHP | IntlChar::isJavaIDPart() Function
- PHP | IntlChar::isIDStart() Function
- PHP | IntlChar::isIDPart() Function
This article is attributed to GeeksforGeeks.org