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 Samual Sam
Page 54 of 151
IntlChar::isJavaSpaceChar() function in PHP
The IntlChar::isJavaSpaceChar() function is used to check whether the entered value is a space character or not according to Java conventions. Syntax IntlChar::isJavaSpaceChar(mixed $codepoint) Parameters codepoint − A character value encoded as a UTF-8 string or an integer representing a Unicode codepoint. Return Value The IntlChar::isJavaSpaceChar() function returns TRUE if the value is a space character according to Java conventions, FALSE otherwise. Returns NULL on failure. Example The following example demonstrates different space characters and non-space characters ? NULL bool(false) bool(true) bool(false) ...
Read MoreIntlChar::isIDIgnorable() function in PHP
The IntlChar::isIDIgnorable() function is used to determine whether the entered character is an ignorable character in Unicode identifiers or not. Ignorable characters are those that should be ignored when parsing identifiers in programming languages. Syntax bool IntlChar::isIDIgnorable(mixed $codepoint) Parameters codepoint − A character or integer value encoded as UTF-8 string, or an integer representing the Unicode code point. Return Value The IntlChar::isIDIgnorable() function returns TRUE if the character is an ignorable character, FALSE otherwise. Returns NULL on failure. Example The following example demonstrates how to check various characters ...
Read MoreIntlChar::charAge() function in PHP
The IntlChar::charAge() function is used to compute the age of a Unicode character, which represents the Unicode version when the character was first designated or assigned. Syntax array IntlChar::charAge( mixed $codepoint ) Parameters codepoint − A character or integer value encoded as a UTF-8 string, or an integer representing the Unicode code point. Return Value The IntlChar::charAge() function returns an array containing the Unicode version number as four integers representing [major, minor, micro, update]. Returns null on failure. Example The following example demonstrates how to get the Unicode ...
Read MoreIntlChar::isUUppercase() function in PHP
The IntlChar::isUUppercase() function checks whether the given input character is an Uppercase Unicode character or not. Syntax IntlChar::isUUppercase(val) Parameters val − It is a character value, which is encoded as a UTF-8 string or Unicode codepoint integer. Return Value The IntlChar::isUUppercase() function returns TRUE if the val is an Uppercase Unicode character, FALSE otherwise. Returns NULL if the input is invalid. Example 1 The following example demonstrates basic usage with different character types ? bool(false) NULL bool(true) Example 2 ...
Read MoreIntlChar::iscntrl() function in PHP
The IntlChar::iscntrl() function is used to check whether the given input is a control character or not. Control characters are special characters that don't have a visual representation, such as line feed (), tab (\t), carriage return (\r), etc. Syntax IntlChar::iscntrl( val ) Parameters val − An integer value or character encoded as a UTF-8 string. Return Value The IntlChar::iscntrl() function returns TRUE if the value is a control character, FALSE otherwise, or NULL on failure. Example 1 The following example checks various characters for control character status ...
Read MoreIntlChar::isalnum() function in PHP
The IntlChar::isalnum() function is used to check whether a given input character is alphanumeric or not. An alphanumeric character is either a digit (0-9) or a letter (A-Z, a-z). Syntax bool IntlChar::isalnum(mixed $codepoint) Parameters codepoint − An integer value or a single character encoded as a UTF-8 string to check. Return Value The IntlChar::isalnum() function returns TRUE if the codepoint is an alphanumeric character, FALSE otherwise, or NULL on failure. Example 1 The following example demonstrates checking various characters ? ...
Read Moreconnection_status() function in PHP
The connection_status() function in PHP returns the status of the current connection between the server and client. This function is particularly useful for checking if a user has disconnected from a long-running script. Syntax connection_status() Parameters This function does not accept any parameters. Return Value The connection_status() function returns an integer representing the connection status bitfield − 0 - CONNECTION_NORMAL - connection is running normally 1 - CONNECTION_ABORTED - connection is aborted by user or network error 2 - CONNECTION_TIMEOUT - connection timed out 3 - CONNECTION_ABORTED & CONNECTION_TIMEOUT - ...
Read Moreezmlm_hash() function in PHP
The ezmlm_hash() function calculates the hash value needed when keeping EZMLM mailing lists in a MySQL database. This function is useful for distributing email addresses across multiple database tables or directories in EZMLM mailing list systems. Syntax ezmlm_hash(addr) Parameters addr − The email address being hashed (string). Return Value The ezmlm_hash() function returns an integer hash value of the email address. Example The following example demonstrates how to use ezmlm_hash() to generate hash values for email addresses − Email: abcd@example.com Hash value: ...
Read Moreftp_systype() function in PHP
The ftp_systype() function returns the system type identifier of the remote FTP server. This information can be useful for determining the operating system of the FTP server you're connected to. Syntax ftp_systype(connection); Parameters The function accepts the following parameter ? connection − Required. The FTP connection resource created by ftp_connect() or ftp_ssl_connect() Return Value The ftp_systype() function returns a string containing the system type on success, or FALSE on failure. Common return values include "UNIX", "Windows_NT", or other system identifiers. Example The following example demonstrates how to ...
Read Moreftp_ssl_connect() function in PHP
The ftp_ssl_connect() function opens a secure SSL-FTP connection to an FTP server. This function provides encrypted communication, making it more secure than the standard ftp_connect() function. Syntax ftp_ssl_connect(host, port, timeout); Parameters host − The FTP server address. Can be a domain name or an IP address. port − Optional. The port to connect to. Default is 21. timeout − Optional. The timeout in seconds for network operations. Default is 90 seconds. Return Value The ftp_ssl_connect() function returns an ...
Read More