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
Articles by karthikeya Boyini
Page 55 of 142
IntlChar::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::isIDStart() function in PHP
The IntlChar::isIDStart() function is used to check whether the entered character is permissible as the first character of an identifier or not. Syntax bool IntlChar::isIDStart(mixed $codepoint) Parameters $codepoint − A character or integer value encoded as a UTF-8 string, or an integer representing a Unicode code point. Return Value The IntlChar::isIDStart() function returns TRUE if the value is a character that can be used as the first character of an identifier, FALSE otherwise. Returns NULL on failure. Example The following example demonstrates checking various characters for identifier start ...
Read MoreIntlChar::isIDPart() function in PHP
The IntlChar::isIDPart() function is used to check whether a given character can be part of an identifier in programming languages. This function follows Unicode standards to determine if a character is valid for use in identifiers. Syntax bool IntlChar::isIDPart(mixed $codepoint) Parameters codepoint − A character value encoded as a UTF-8 string or an integer representing the Unicode code point. Return Value The IntlChar::isIDPart() function returns TRUE if the character can be part of an identifier, FALSE otherwise, or NULL on failure. Example The following example demonstrates how to ...
Read MoreIntlChar::isISOControl() function in PHP
The IntlChar::isISOControl() function is used to check whether the entered value is an ISO control code character or not. ISO control characters are non-printing characters in the range U+0000-U+001F (C0 controls) and U+007F-U+009F (C1 controls). Syntax IntlChar::isISOControl(mixed $codepoint): ?bool Parameters codepoint − A character or integer value encoded as a UTF-8 string, or an integer representing a Unicode code point. Return Value The IntlChar::isISOControl() function returns TRUE if the entered value is an ISO control code character, FALSE otherwise, or NULL on failure. Example ...
Read MoreIntlChar::charName() function in PHP
The IntlChar::charName() function gets the name of a Unicode character. This is useful for identifying characters by their official Unicode names. Syntax string IntlChar::charName( val [, choice = IntlChar::UNICODE_CHAR_NAME] ) Parameters val − An integer value or character encoded as UTF-8 string. choice − The following are the constant conditions − IntlChar::UNICODE_CHAR_NAME ...
Read MoreIntlChar::ispunct() function in PHP
The IntlChar::ispunct() function checks whether the given input character is a punctuation character or not. This function is part of PHP's Intl extension and follows Unicode standards for character classification. Syntax bool IntlChar::ispunct(mixed $val) Parameters val − An integer value or character encoded as a UTF-8 string. This parameter is required. Return Value The IntlChar::ispunct() function returns TRUE if the value is a punctuation character, FALSE otherwise. Returns NULL on failure. Example 1 The following example demonstrates checking various characters ? The output ...
Read MoreIntlChar::isprint() function in PHP
The IntlChar::isprint() function checks whether a given Unicode character is a printable character or not. A printable character is one that can be displayed and is not a control character. Syntax IntlChar::isprint( val ) Parameters val − An integer codepoint value or a single character encoded as a UTF-8 string. Required! Return Value The IntlChar::isprint() function returns TRUE if the character is printable, FALSE if not printable, or NULL on failure (invalid input). Example 1: Testing Single Characters The following example tests various single characters ? ...
Read MoreIntlChar::isbase() function in PHP
The IntlChar::isbase() function checks whether a given character is a base character. A base character is any character that is a letter, digit, or other character that can serve as the base for combining characters. Syntax IntlChar::isbase(mixed $codepoint): ?bool Parameters codepoint − An integer codepoint value (e.g., 0x41 for 'A'), or a single UTF-8 character (e.g., "A"). Required. Return Value Returns TRUE if the character is a base character, FALSE otherwise, or NULL on failure (invalid input). Example The following example demonstrates checking various characters ? ...
Read MoreCheck if a string starts with given word in PHP
In PHP, you can check if a string starts with a specific word or substring using various methods. The most common approaches include using substr(), strpos(), or the newer str_starts_with() function (PHP 8+). Using Custom Function with substr() Create a function that compares the beginning of a string with the specified substring ?
Read Moreftp_raw() function in PHP
The ftp_raw() function sends raw commands directly to the FTP server and returns the server's response. This gives you low-level control over FTP operations by allowing you to send any valid FTP protocol command. Syntax ftp_raw(connection, command) Parameters connection − The FTP connection resource created by ftp_connect() command − The raw FTP command to execute (without trailing CRLF) Return Value The ftp_raw() function returns the server's response as an array of strings, where each element represents a line of the server's response. Example The following example demonstrates sending ...
Read More