elminson / stringprocessor
StringProcessor
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- phpunit/phpunit: ^7.4@dev
Requires (Dev)
- phpunit/phpunit: ^7.4@dev
This package is auto-updated.
Last update: 2024-11-11 15:40:35 UTC
README
#StringProcessor
Complete the method/function so that it converts dash/underscore delimited words into camel casing. The first word within the output should be capitalized only if the original word was capitalized.
Examples
toCamelCase("the-stealth-warrior"); // returns "theStealthWarrior" toCamelCase("The_Stealth_Warrior"); // returns "TheStealthWarrior"
Use
$stringprocessor = new StringProcessor(); $result=$stringprocessor->toCamelCase("hello_world")); //$result ==> helloWorld