Strings In Depth2 / 18
Up next

Change case

<?php
declare(strict_types=1);
$s = "hello world";
echo strtoupper($s), "\n";
echo strtolower("LOUD"), "\n";
echo ucfirst($s), "\n";
echo ucwords($s), "\n";
What you're solving

upper, lower, and title case