What is the function to convert to lowercase in php?

藏色散人
Release: 2023-03-10 08:50:02
Original
2310 people have browsed it

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)
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template