The Cusp of Helix

Reference of Intact Case
[ucFirst]

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

First word to capitalize, even if it was acronym.

Parameters:

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

Returns:

  • (string) — Capitalized String.

Author:

  • StewEucen

Since:

  • Version 1.0.0

Examples:

use StewEucen\Acts\IntactCase IntactCase::ucFirst('highClass') //=> "HighClass" IntactCase::ucFirst('xml_HTMLRequest') //=> "XML_HTMLRequest"