Make First Letter Uppercase and the Rest Lowercase in a String using PHP July 23, 2021 PHP 0 Comments 475 Views ucfirst & strtolower functions <?php $text = 'hello WORLD'; $result = ucfirst(strtolower($text)); echo $result; // Hello world
Leave a Comment
Cancel reply