How to convert to lowercase letters in php

醉折花枝作酒筹
Release: 2023-03-09 12:02:01
Original
3266 people have browsed it

In PHP, you can use the strtolower() function to convert letters to lowercase, the syntax is "strtolower(string)". The strtolower() function converts all alphabetic characters in a string to lowercase and returns them.

How to convert to lowercase letters in php

The operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer

strtolower function: This function will pass in the characters All characters in string parameters are converted to lowercase.

<?php
  $str = "I want To FLY";
  $str = strtolower($str);
  echo $str;
//by www.jb51.net
?>
Copy after login

Output:

i want to fly
Copy after login

Recommended: "2021 PHP interview questions summary (collection)" "php video tutorial"

The above is the detailed content of How to convert 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!