How To Convert String To Lowercase in PHP

How To Convert String To Lowercase in PHP

In this tutorial we will see How To Convert String To Lowercase in PHP. PHP strtolower() function can be used to convert string to lowercase.

Using strtolower() Function

We can simply use strtolower() Function to convert any string to lowercase.

Take a look at the code given below.


<?php
$string = 'HowToCodeSchool.com';
$lowerCaseString = strtolower($string);
echo $lowerCaseString;
?>

$lowerCaseString contains the lowercase version of the original string.

Output

howtocodeschool.com

Comments

Popular posts from this blog

Gove confirms mandatory housebuilding targets for councils will be abolished in face of Tory rebellion – UK politics live

Kotak Mahindra Bank Recruitment 2022 Released for Graduate Candidates And Apply Online