Answers for "echo to lowercase php"

PHP
4

how tdo you convert a stringto 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'
Posted by: Guest on April-14-2020
0

php to lowercase

<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower($str);
echo $str; 
// Result: mary had a little lamb and she loved it so
Posted by: Guest on January-18-2021

Browse Popular Code Answers by Language