class CRM_Utils_EnglishNumber

Properties

static protected $lowNumbers
static protected $intervalsOfTen

Methods

static string
toCamelCase(int $num, mixed $default = NULL)

No description

static string
toHyphen(int $num, mixed $default = NULL)

No description

Details

at line 85
static string toCamelCase(int $num, mixed $default = NULL)

Parameters

int $num Ex: 12 or 54.
mixed $default The default value to return if we cannot determine an English representation. If omitted or NULL, throws an exception. Tip: If you want to support high values as numerals, just pass the number again.

Return Value

string Ex: 'Twelve' or 'FiftyFour'.

at line 119
static string toHyphen(int $num, mixed $default = NULL)

Parameters

int $num Ex: 12 or 54.
mixed $default The default value to return if we cannot determine an English representation. If omitted or NULL, throws an exception. Tip: If you want to support high values as numerals, just pass the number again.

Return Value

string Ex: 'twelve' or 'fifty-four'.