Answers for "upper and lowercases php"

PHP
5

convert string to lowercase in php

/* The strtolower() function converts a string to lowercase.
Convert all characters to lowercase.*/
<?php
echo strtolower("Hello WORLD.");
?>
// Output: hello world.
Posted by: Guest on June-04-2020
4

how to convert string word to lowercase in php

strtolower ( string $string ) : string 
//Returns string with all alphabetic characters converted to lowercase.
$string = 'HELLO WORLD';
echo strtolower($string); //Output: 'hello world'
The strtolower() function is used to convert a string into lowercase. This function takes a string as parameter and converts all the uppercase english alphabets present in the string to lowercase.
Posted by: Guest on June-19-2020

Browse Popular Code Answers by Language