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

How to convert string to lowercase in php

王林
Release: 2023-03-05 20:40:02
Original
1985 people have browsed it

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

Example:

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

Running results:

hello world.
Copy after login

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!

Related labels:
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