Created
August 6, 2022 20:30
-
-
Save modos/ee62b5e8dfea91259aec0af4a0c6cd6b to your computer and use it in GitHub Desktop.
camelCase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = fopen('input.txt', 'r'); | |
$line = fgets($file); | |
$line = trim($line); | |
$line = strtolower($line); | |
$line = ucwords($line, ' '); | |
$line = str_replace(' ', '', $line); | |
$line = lcfirst($line); | |
echo $line; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment