The Cusp of Helix

Reference of Intact Case
[studlyCaps]

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

Convert to StudlyCaps from delimiterized compound words.

Parameters:

nametypedefaultcaption
$haystackstringString to Convert.
$delimiterstring'_'Delimiter.

Returns:

  • (string) — StudlyCaps string.

Author:

  • StewEucen

Since:

  • Version 1.0.0

Aliases:

  • pascalCase
  • PascalCase

Examples:

use StewEucen\Acts\IntactCase IntactCase::studlyCaps('snake_case') //=> "SnakeCase" IntactCase::studlyCaps('get_utc__day') //=> "GetUTCDay" IntactCase::studlyCaps('ui__view') //=> "UIView" IntactCase::studlyCaps('xml__html__request') //=> "XML_HTMLRequest"