Found 34490 Articles for Programming

IntlChar::charName() function in PHP

karthikeya Boyini
Updated on 30-Dec-2019 08:08:13

76 Views

The IntlChar::charName()function gets the name of a Unicode character.Syntaxstring IntlChar::charName( val [, choice = IntlChar::UNICODE_CHAR_NAME] )Parametersval − An integer value or character encoded as UTF-8 string.choice − The following are the constant conditions −IntlChar::UNICODE_CHAR_NAMEIntlChar::CHAR_NAME_ALIASIntlChar::CHAR_NAME_CHOICE_COUNTIntlChar::UNICODE_10_CHAR_NAMEIntlChar::EXTENDED_CHAR_NAMEReturnThe IntlChar::charName() function returns the corresponding name of input data. For no name of character, an empty string is returned.ExampleThe following is an example −OutputThe following is the output −string(9) "AMPERSAND" string(9) "AMPERSAND"ExampleLet us see another example −OutputThe following is the output −string(22) "LATIN CAPITAL LETTER K" string(22) "LATIN CAPITAL LETTER K"ExampleLet us see one more example with a different input value −OutputThe following is the output ... Read More

IntlChar::isUUppercase() function in PHP

Samual Sam
Updated on 30-Dec-2019 07:49:14

67 Views

The IntlChar::isUUppercase() function checks whether the given input character is an Uppercase Unicode character or not.SyntaxIntlChar::isUUppercase(val)Parametersval − It is a character value, which is encoded as a UTF-8 string.ReturnThe IntlChar::isUUppercase() function returns TRUE if the val is an Uppercase Unicode character or not.ExampleThe following is an example −OutputThe following is the output −bool(false) NULL bool(true)ExampleLet us see another example −OutputThe following is the output −bool(false) bool(false) bool(true)

IntlChar::ispunct() function in PHP

karthikeya Boyini
Updated on 30-Dec-2019 07:48:40

63 Views

The IntlChar::ispunct() function check whether the given input character is a punctuation character or not.Syntaxbool IntlChar::ispunct(val)Parametersval − An integer value or character encoded as a UTF-8 string. Required!ReturnThe IntlChar::ispunct()function returns TRUE if the val is a punctuation character.ExampleThe following is an example −OutputThe following is the output −bool(false) bool(true) bool(false)ExampleLet us see another example −OutputThe following is the output −bool(true) bool(true) NULL

IntlChar::isspace() function in PHP

Samual Sam
Updated on 30-Dec-2019 07:47:57

101 Views

The IntlChar::isspace() function check whether the given input character is a space character or not.SyntaxIntlChar::isspace(val)Parametersval − An integer value or character encoded as UTF-8 string.ReturnThe IntlChar::isspace()function returnsTRUE if the val is a space character.ExampleThe following is an example −OutputThe following is the output −NULL bool(true) bool(true)ExampleLet us see another example −OutputThe following is the output −NULL bool(true) bool(false)

IntlChar::isxdigit() function in PHP

karthikeya Boyini
Updated on 30-Dec-2019 07:41:30

70 Views

The IntlChar::isxdigit() function checks whether the given input character is a hexadecimal digit or not. The following are the hexadecimal digits −Digit numbers (0 – 9)Letters (a – f) and (A – F)\u{0041} to \u{0046}, \u{0061} to \u{0066}, \u{FF21} to \u{FF26}\u{FF41} to \u{FF46}).SyntaxIntlChar::isxdigit( val )Parametersval − An integer values or character encoded as a UTF-8 string.ReturnThe IntlChar::isxdigit() function returns TRUE if the val is a hexadecimal digit.ExampleThe following is an example −var_dump(IntlChar::isxdigit("10")); echo ""; // Input data is character type var_dump(IntlChar::isxdigit("A")); echo ""; var_dump(IntlChar::isxdigit("a")); echo "";OutputThe following is the output −bool(true) NULL bool(true)ExampleLet us see another example −OutputThe following is ... Read More

IntlChar::iscntrl() function in PHP

Samual Sam
Updated on 30-Dec-2019 07:39:32

67 Views

The IntlChar::iscntrl() function is used to check the given input is a control character or not. Examples include line feed (), tab (\t), etc.SyntaxIntlChar::iscntrl( val )Parametersval − An integer values or character encoded as a UTF-8 string.ReturnThe IntlChar::iscntrl() function returns TRUE if the val is a control character.ExampleThe following is an example −OutputThe following is the output −bool(true) NULL NULLExampleLet us now see another example wherein we are checking whether the entered value is a control character or not −OutputThe following is the output −bool(true) NULL

IntlChar::isprint() function in PHP

karthikeya Boyini
Updated on 30-Dec-2019 07:37:57

88 Views

The IntlChar::isprint() function checks whether the given input character is a printable character or not.SyntaxIntlChar::isprint( val )Parametersval − An integer values or character encoded as a UTF-8 string. Required!ReturnThe IntlChar::isprint() function returns TRUE if the val is a printable characterExampleThe following is an example −OutputThe following is the output −bool(true) bool(true) bool(false)ExampleLet us see another example −OutputThe following is the output −NULL bool(true) NULL

IntlChar::isalnum() function in PHP

Samual Sam
Updated on 30-Dec-2019 07:36:57

114 Views

The IntlChar::isalnum() function is used to check the given input is an alphanumeric character or not. The alphanumeric character is a digit or letter.Syntaxbool IntlChar::isalnum(val)Parametersval − An integer values or character encoded as a UTF-8 string.ReturnThe IntlChar::isalnum()function returns TRUE if the val is alphanumeric.ExampleThe following is an example −OutputThe following is the output −NULL NULL NULL bool(true)ExampleLet us see another example −OutputThe following is the output −bool(false) bool(true)

IntlChar::isbase() function in PHP

karthikeya Boyini
Updated on 30-Dec-2019 07:50:46

69 Views

The IntlChar::isbase() function is used to check the given input data is a base character or not.SyntaxIntlChar::isbase( val)Parametersval − An integer or character encoded as a UTF-8 string. Required.ReturnThe IntlChar::isbase() function returns TRUE if the val is a base character.ExampleThe following is an example −OutputThe following is the output −bool(true) NULL NULL NULL

IntlChar::isalpha() function in PHP

karthikeya Boyini
Updated on 30-Dec-2019 07:49:49

257 Views

The IntlChar::isalpha() function is used to check the given input is an alphanumeric character or not.SyntaxIntlChar::isalpha( $val )Parametersval − An integer values or character encoded as a UTF-8 string.Required.ReturnThe IntlChar::isalpha() function returns TRUE if the val is alphanumeric character.ExampleThe following is an example −OutputThe following is the output −bool(false) bool(true)ExampleLet us see another example wherein we are checking for alphanumeric characters −OutputThe following is the output −NULL NULL NULL bool(true)

Advertisements