Home >Backend Development >PHP Problem >What is the function to convert to lowercase in php?

What is the function to convert to lowercase in php?

藏色散人
藏色散人Original
2021-06-02 09:03:202351browse

php's function to convert to lowercase is the strtolower function. The function of this function is to convert a string to lowercase. Its usage syntax is "strtolower(string)", and the parameter string specifies the string to be converted.

What is the function to convert to lowercase in php?

The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer

What is the function of converting php to lowercase?

strtolower() function converts a string to lowercase.

Note: This function is binary safe.

Related functions:

lcfirst() - Convert the first character in the string to lowercase

strtoupper() - Convert the string to uppercase

ucfirst() - Converts the first character in the string to uppercase

ucwords() - Converts the first character of each word in the string to uppercase

Syntax

strtolower(string)

Parameters

string required. Specifies the string to be converted.

Return value: Returns the string converted to lowercase.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What is the function to convert to lowercase in php?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn