convert string to lowercase in php
/* strtolower() function converts string to lowercase. */
<?php
echo strtolower("Hello WORLD 123");
?>
// Output:hello world 123
convert string to lowercase in php
/* strtolower() function converts string to lowercase. */
<?php
echo strtolower("Hello WORLD 123");
?>
// Output:hello world 123
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.
php convert to lowercase
<?php
echo strtolower("Convert THIS TEXT ALL TO LOWER CASE");
?>
php string to uppercase
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtoupper($str);
echo $str; // show: MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us