PHP Articles

Page 69 of 81

IntlChar::iscntrl() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 174 Views

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 More

IntlChar::isprint() function in PHP

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 187 Views

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 More

IntlChar::isalnum() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 216 Views

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 More

IntlChar::isbase() function in PHP

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 137 Views

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 More

Check if a string starts with given word in PHP

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 809 Views

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 More

connection_status() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 205 Views

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 More

ezmlm_hash() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 172 Views

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 More

ftp_systype() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 130 Views

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 More

ftp_ssl_connect() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 391 Views

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

ftp_site() function in PHP

Samual Sam
Samual Sam
Updated on 15-Mar-2026 116 Views

The ftp_site() function sends an FTP SITE command to the FTP server. These commands are server-specific and handle OS features like file permissions and group membership. Syntax ftp_site(conn, command); Parameters conn − The FTP connection resource returned by ftp_connect() command − The SITE command string. These commands vary from server to server and are used for handling OS specific features such as file permissions and group membership Return Value The ftp_site() function returns TRUE on success or FALSE on failure. Example The following example demonstrates changing file permissions ...

Read More
Showing 681–690 of 802 articles
« Prev 1 67 68 69 70 71 81 Next »
Advertisements