Found 34489 Articles for Programming

IntlChar getBlockCode() function in PHP

Samual Sam
Updated on 31-Dec-2019 06:38:39

31 Views

The IntlChar getBlockCode() function is used to get the Unicode allocation block containing the value val.SyntaxIntlChar::getBlockCode (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar getBlockCode()function returns the block value for val. The following is the listing −IntlChar::BLOCK_CODE_BASIC_LATINIntlChar::BLOCK_CODE_GREEKIntlChar::BLOCK_CODE_MISCELLANEOUS_SYMBOLSExampleThe following is an example −OutputThe following is the output −bool(true) bool(false) bool(false)

IntlChar digit() function in PHP

karthikeya Boyini
Updated on 31-Dec-2019 06:37:16

34 Views

The IntlChar digit() function is used to display the decimal digit value of a code point for a given radix.Syntaxint IntlChar::digit( $val, $radix )Parametersval − An integer or character encoded as a UTF-8 string.radix − The radix value. Default is 10.ReturnThe IntlChar digit() function returns the number represented by the character in the given radix.ExampleThe following is an example −OutputThe following is the output −int(2) bool(false) bool(false)

IntlChar isdefined() function in PHP

Samual Sam
Updated on 31-Dec-2019 06:36:29

46 Views

The IntlChar isdefined() function checks whether the entered value is defined or not.Syntaxbool IntlChar::isdefined (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar isdefined() function returns TRUE if val is a defined character.ExampleThe following is an example −OutputThe following is the output −bool(true) bool(true) NULL NULL

IntlChar charType() function in PHP

karthikeya Boyini
Updated on 31-Dec-2019 06:35:55

19 Views

The IntlChar charType() function is used to get the general category value for the entered value.Syntaxint IntlChar::charType (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar charType()function returns the following general category content −IntlChar::CHAR_CATEGORY_UNASSIGNEDIntlChar::CHAR_CATEGORY_GENERAL_OTHER_TYPESIntlChar::CHAR_CATEGORY_UPPERCASE_LETTERIntlChar::CHAR_CATEGORY_LOWERCASE_LETTERIntlChar::CHAR_CATEGORY_TITLECASE_LETTERIntlChar::CHAR_CATEGORY_MODIFIER_LETTERIntlChar::CHAR_CATEGORY_OTHER_LETTERIntlChar::CHAR_CATEGORY_NON_SPACING_MARKIntlChar::CHAR_CATEGORY_ENCLOSING_MARKIntlChar::CHAR_CATEGORY_COMBINING_SPACING_MARKIntlChar::CHAR_CATEGORY_DECIMAL_DIGIT_NUMBERIntlChar::CHAR_CATEGORY_LETTER_NUMBERIntlChar::CHAR_CATEGORY_OTHER_NUMBERIntlChar::CHAR_CATEGORY_SPACE_SEPARATORIntlChar::CHAR_CATEGORY_LINE_SEPARATORIntlChar::CHAR_CATEGORY_PARAGRAPH_SEPARATORIntlChar::CHAR_CATEGORY_CONTROL_CHARIntlChar::CHAR_CATEGORY_FORMAT_CHARIntlChar::CHAR_CATEGORY_PRIVATE_USE_CHARIntlChar::CHAR_CATEGORY_SURROGATEIntlChar::CHAR_CATEGORY_DASH_PUNCTUATIONIntlChar::CHAR_CATEGORY_START_PUNCTUATIONIntlChar::CHAR_CATEGORY_END_PUNCTUATIONIntlChar::CHAR_CATEGORY_CONNECTOR_PUNCTUATIONIntlChar::CHAR_CATEGORY_OTHER_PUNCTUATIONIntlChar::CHAR_CATEGORY_MATH_SYMBOLIntlChar::CHAR_CATEGORY_CURRENCY_SYMBOLIntlChar::CHAR_CATEGORY_MODIFIER_SYMBOLIntlChar::CHAR_CATEGORY_OTHER_SYMBOLIntlChar::CHAR_CATEGORY_INITIAL_PUNCTUATIONIntlChar::CHAR_CATEGORY_FINAL_PUNCTUATIONIntlChar::CHAR_CATEGORY_CHAR_CATEGORY_COUNTExampleThe following is an example −OutputThe following is the output −bool(false) bool(false) bool(false) bool(true) bool(true)Read More

IntlChar charDirection() function in PHP

Samual Sam
Updated on 31-Dec-2019 06:35:02

21 Views

The IntlChar charDirection() function is used to display the the bidirectional category value for the entered value.Syntaxint IntlChar::charDirection(val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar charDirection() function returns the following bidirectional category value −IntlChar::CHAR_DIRECTION_LEFT_TO_RIGHTIntlChar::CHAR_DIRECTION_RIGHT_TO_LEFTIntlChar::CHAR_DIRECTION_EUROPEAN_NUMBERIntlChar::CHAR_DIRECTION_EUROPEAN_NUMBER_SEPARATORIntlChar::CHAR_DIRECTION_EUROPEAN_NUMBER_TERMINATORIntlChar::CHAR_DIRECTION_ARABIC_NUMBERIntlChar::CHAR_DIRECTION_COMMON_NUMBER_SEPARATORIntlChar::CHAR_DIRECTION_BLOCK_SEPARATORIntlChar::CHAR_DIRECTION_SEGMENT_SEPARATORIntlChar::CHAR_DIRECTION_WHITE_SPACE_NEUTRALIntlChar::CHAR_DIRECTION_OTHER_NEUTRALIntlChar::CHAR_DIRECTION_LEFT_TO_RIGHT_EMBEDDINGIntlChar::CHAR_DIRECTION_LEFT_TO_RIGHT_OVERRIDEIntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT_ARABICIntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT_EMBEDDINGIntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT_OVERRIDEIntlChar::CHAR_DIRECTION_POP_DIRECTIONAL_FORMATIntlChar::CHAR_DIRECTION_DIR_NON_SPACING_MARKIntlChar::CHAR_DIRECTION_BOUNDARY_NEUTRALIntlChar::CHAR_DIRECTION_FIRST_STRONG_ISOLATEIntlChar::CHAR_DIRECTION_LEFT_TO_RIGHT_ISOLATEIntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT_ISOLATEIntlChar::CHAR_DIRECTION_POP_DIRECTIONAL_ISOLATEIntlChar::CHAR_DIRECTION_CHAR_DIRECTION_COUNTExampleThe following is an example −OutputThe following is the output −int(3) int(10) NULL int(0)Read More

IntlChar tolower() function in PHP

karthikeya Boyini
Updated on 31-Dec-2019 06:34:22

38 Views

The IntlChar tolower() function converts the character into Unicode character lowercase.SyntaxIntlChar::tolower (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar tolower() function returns the converted lowercas character. If the character is already in lowercase, the same character is returned.ExampleThe following is an example −OutputThe following is the output −string(1) "J" NULL string(1) "J" NULL

IntlChar toupper() function in PHP

Samual Sam
Updated on 31-Dec-2019 06:33:32

34 Views

The IntlChar toupper()function converts the character into Unicode character uppercase.SyntaxIntlChar::toupper (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar toupper()function returns the converted uppercase character. If the character is already in uppercase, the same character is returned.ExampleThe following is an example −OutputThe following is the output −string(1) "J" NULL string(1) "J" NULL

imagecreate() function in PHP

Chandu yadav
Updated on 31-Dec-2019 06:25:14

6K+ Views

The imagecreate() function is used to create a new image. It is preferred to use imagecreatetruecolor() to create an image instead of imagecreate(). This is because the image processing occurs on the highest quality image possible which can be created using imagecreatetruecolor().Syntaximagecreate( $width, $height )Parameterswidth: The width of imageheight: The height of imageReturnThe imagecreate() function returns an image resource identifier on success or FALSE on errors.ExampleThe following is an example:OutputThe following is the output:

imagesx() function in PHP

Ankith Reddy
Updated on 31-Dec-2019 06:24:40

206 Views

The imagesx() function gets the width of image. It returns the width of the image or FALSE on errors.Syntaximagesx(img)Parametersimg: Image resource created with imagecreatetruecolor()ReturnThe imagesx() function returns the width of the image or FALSE on errors.ExampleThe following is an example: Live DemoOutputThe following is the output:450

imagesy() function in PHP

George John
Updated on 31-Dec-2019 06:24:03

65 Views

The imagesy() function gets the height of image. It returns the height of the image or FALSE on errors.Syntaximagesy(img)Parametersimg: Image resource created with imagecreatetruecolor()ReturnThe imagesy() function returns the height of the image or FALSE on errors.ExampleThe following is an example: Live DemoOutputThe following is the output:250

Advertisements