The Cusp of Helix

Reference of Intact Case
[camelize]

(string) camelize ($haystack, [$delimiter = '_'])

Convert to camelCase from delimiterized compound words.

Parameters:

nametypedefaultcaption
$haystackstringString to Convert.
$delimiterstring'_'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"