elminson/stringprocessor

StringProcessor

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

pkg:composer/elminson/stringprocessor

v1.0 2018-10-11 00:18 UTC

This package is auto-updated.

Last update: 2025-10-11 17:46:12 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