MYSQL

How to reverse a string in PHP

The strrev() function is an built-in function in PHP which is used to reverse strings. Syntax: string – This parameter is required. It specifies the string to reverse. Example:

How to find string length in PHP

The PHP strlen() is used to get the length of a string. It also includes the white spaces inside the string. Syntax: string – This parameter is required. It specifies the length…

How to convert a string to uppercase in PHP

The strtoupper() function is used to converts a string to uppercase. All other special characters or numeric characters in the string remains unchanged. This function is binary-safe. Syntax string –…

How to convert a string to lowercase in PHP

The strtolower() function is used to converts a string to lowercase. All other special characters or numeric characters in the string remains unchanged. This function is binary-safe. Syntax: string –…
back to top