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

How to convert uppercase letters to lowercase letters in php

尚
Original
2020-04-25 16:09:323022browse

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>

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!

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
Previous article:php => What does it mean?Next article:php => What does it mean?