Home  >  Article  >  Backend Development  >  How to convert string to lowercase in php

How to convert string to lowercase in php

藏色散人
藏色散人Original
2021-02-23 10:42:292036browse

php method to convert strings to lowercase: first create a PHP sample file; then use the "strtolower("Hello WORLD.");" method to convert the specified string to lowercase.

How to convert string to lowercase in php

#The operating environment of this article: Windows7 system, PHP7.1, Dell G3 computer.

strtolower() function converts a string to lowercase.

Note: This function is binary safe.

Example:

Convert all characters to lowercase:

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

Recommended: "PHP Video Tutorial"

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