(string) camelize ($haystack, [$delimiter = '_'])
Convert to camelCase from delimiterized compound words.
Parameters:
name | type | default | caption |
---|---|---|---|
$haystack | string | String to Convert. | |
$delimiter | string | '_' | Delimiter. |
Returns:
- (string) — camelCase string.
Author:
- StewEucen
Since:
- Version 1.0.0
Aliases:
- camelCase
- nerdCaps
Examples:
use StewEucen\Acts\IntactCase
IntactCase::camelize('snake_case') //=> "snakeCase"
IntactCase::camelize('get_utc__day') //=> "getUTCDay"
IntactCase::camelize('ui__view') //=> "ui_View"
IntactCase::camelize('xml__html__request') //=> "xml_HTMLRequest"