Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
PHP Articles
Page 67 of 81
imagefill() function in PHP
The imagefill() function is used to perform a flood fill operation on an image, filling an area with a specified color starting from a given point. Syntax imagefill(img, x, y, color) Parameters img − An image resource created by functions like imagecreatetruecolor() or imagecreatefromjpeg() x − x-coordinate of the starting point for the fill operation ...
Read Moreimagedashedline() function in PHP
The imagedashedline() function in PHP draws a dashed line on an image resource. This function is part of the GD library and creates a line with alternating filled and empty segments between two specified points. Syntax imagedashedline($image, $x1, $y1, $x2, $y2, $color) Parameters image − An image resource created by functions like imagecreatetruecolor() x1 − Starting point x-coordinate y1 − Starting point y-coordinate x2 − Ending point x-coordinate y2 − Ending point y-coordinate color − Line color created with imagecolorallocate() Return Value Returns TRUE on success or FALSE on failure. ...
Read Moreimagefilledrectangle() function in PHP
The imagefilledrectangle() function in PHP draws a filled rectangle on an image resource. This function is part of the GD extension and is commonly used for creating graphics, overlays, and visual elements programmatically. Syntax imagefilledrectangle($image, $x1, $y1, $x2, $y2, $color) Parameters $image − An image resource created by functions like imagecreatetruecolor(). $x1 − x-coordinate of the first corner (top-left). $y1 − y-coordinate of the first corner (top-left). $x2 − x-coordinate of the opposite corner (bottom-right). $y2 − y-coordinate of the opposite corner (bottom-right). $color − The fill color created with imagecolorallocate(). ...
Read MoreIntlChar isgraph() function in PHP
The IntlChar::isgraph() function checks whether a given character is a graphic character or not. Graphic characters are visible characters that have a visual representation, excluding whitespace and control characters. Syntax bool IntlChar::isgraph(mixed $codepoint) Parameters codepoint − An integer codepoint value (e.g., 0x41 for 'A'), or a character encoded as a UTF-8 string (e.g., "A"). Return Value The IntlChar::isgraph() function returns TRUE if the codepoint is a graphic character, FALSE otherwise. Returns NULL on failure. Example The following example demonstrates checking various characters ? ...
Read MoreIntlChar isMirrored() function in PHP
The IntlChar::isMirrored() function is used to check whether a character has the Bidi_Mirrored property, which indicates if the character is mirrored in bidirectional text (like Arabic or Hebrew). Syntax bool IntlChar::isMirrored(mixed $codepoint) Parameters codepoint − An integer codepoint value or a character encoded as a UTF-8 string. Return Value Returns TRUE if the character has the Bidi_Mirrored property, FALSE otherwise. Example The following example demonstrates checking various characters for the Bidi_Mirrored property − Output bool(true) bool(true) bool(false) bool(false) bool(true) bool(true) ...
Read MoreIntlChar::isblank() function in PHP
The IntlChar::isblank() function checks whether the entered value is a blank or horizontal space character. This function is part of PHP's Internationalization extension and follows Unicode standards for character classification. Syntax IntlChar::isblank(val) Parameters val − An integer or character encoded as a UTF-8 string representing a Unicode code point. Return Value The IntlChar::isblank() function returns TRUE if the entered value is a blank or horizontal space character, FALSE otherwise. Returns NULL on failure. Example The following example demonstrates how to use IntlChar::isblank() with different characters ? ...
Read MoreIntlChar::islower() function in PHP
The IntlChar::islower() function checks whether the given input character is a lowercase character or not. Syntax bool IntlChar::islower(val) Parameters val − A character encoded as a UTF-8 string or an integer codepoint value. Return Value The IntlChar::islower() function returns TRUE if the entered value is a lowercase character, FALSE otherwise. Example The following example demonstrates how to check if characters are lowercase − The output of the above code is − bool(true) bool(false) bool(true) bool(false) bool(false) Using Unicode Codepoints ...
Read MoreIntlChar::isWhitespace() function in PHP
The IntlChar::isWhitespace() function checks whether the given input character is a whitespace character or not. This function is part of PHP's Intl extension and follows Unicode standards for whitespace detection. Syntax IntlChar::isWhitespace(val) Parameters val − A character or integer value encoded as a UTF-8 string, or a Unicode code point. Return Value The IntlChar::isWhitespace() function returns TRUE if the character is a whitespace character, FALSE otherwise, or NULL on failure. Example The following example demonstrates how to use IntlChar::isWhitespace() with different characters ? ...
Read MoreIntlChar::isUAlphabetic() function in PHP
The IntlChar::isUAlphabetic() function is used to check whether the entered value is an Alphabetic Unicode character or not. This function is part of PHP's Internationalization extension and follows Unicode standards for character classification. Syntax IntlChar::isUAlphabetic(val) Parameters val − A character or integer value encoded as a UTF-8 string, or an integer codepoint value. Return Value The IntlChar::isUAlphabetic() function returns TRUE if the value is an Alphabetic Unicode character, FALSE otherwise, or NULL on failure. Example The following example demonstrates checking various characters ? ...
Read MoreIntlChar::charMirror() function in PHP
The IntlChar::charMirror() function finds the "mirror-image" character for bidirectional text display. This function is useful when working with text that contains characters like brackets, parentheses, or other symbols that need to be mirrored in right-to-left languages. Syntax IntlChar::charMirror(val) Parameters val − A character or integer value encoded as a UTF-8 string. Return Value The IntlChar::charMirror() function returns another Unicode code point that may serve as a mirror-image substitute, or the original codepoint itself if there is no such mapping or the codepoint does not have the ...
Read More