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

How to convert uppercase letters to lowercase letters in php

Release: 2023-02-28 20:12:02
Original
3103 people have browsed it

How to convert uppercase letters to lowercase letters in php

The strtolower() function can be used in php to convert all uppercase letters to lowercase letters.

strtolower() function converts a string to lowercase.

Note: This function is binary safe.

Syntax: strtolower(string)

Parameters: string Required. Specifies the string to be converted.

Example:

<!DOCTYPE html>
<html>
<body>

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

The running results are as follows:

How to convert uppercase letters to lowercase letters in php

Please pay attention to more PHP related tutorials php Chinese website

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