Home >Backend Development >PHP Problem >How to convert string to lowercase in php

How to convert string to lowercase in php

王林
王林Original
2020-09-11 14:10:251984browse

How to convert a string into lowercase in php: You can use the built-in function strtolower() to convert. The strtolower() function can convert all uppercase letters in a string to lowercase, such as [strtolower("Hello WORLD.")].

How to convert string to lowercase in php

strtolower() function converts a string to lowercase.

(Recommended tutorial: php video tutorial)

Grammar:

strtolower(string)

Example:

<?php
echo strtolower("Hello WORLD.");
?>

Running results:

hello world.

Related recommendations: php training

The above is the detailed content of How to convert string 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