class StringTransform

Class StringTransform.

Methods

static  string
toAlphanumeric( string $string)

No description

static  string
toAlphanumericAndDashes( string $string)

No description

static  string
spacesToDashes( string $string, bool $limit = true)

No description

static  string
dashesToSpaces( string $string, bool $limit = true)

No description

static  string
toSlug( string $string, bool $lower = true)

No description

static  string
toPhoneNumber( string $string)

No description

static  string
toPhoneNumberFormatted( string $string, string $format = '+%COUNTRY% (%NPA%) %CO%-%LINE%')

No description

static  bool
compare( string $a, string $b, string $encoding = 'UTF-8')

No description

static  string[]
split( string $string)

No description

static  string
camelToSnakeCase( string $string)

No description

static  string
camelToPascalCase( string $string)

No description

static  string
pascalToSnakeCase( string $string)

No description

static  string
pascalToCamelCase( string $string)

No description

static  string
snakeToCamelCase( string $string)

No description

static  string
snakeToPascalCase( string $string)

No description

Details

at line line 25
final static string toAlphanumeric( string $string)

Parameters

string $string

Return Value

string

at line line 35
final static string toAlphanumericAndDashes( string $string)

Parameters

string $string

Return Value

string

at line line 46
final static string spacesToDashes( string $string, bool $limit = true)

Parameters

string $string
bool $limit

Return Value

string

at line line 63
final static string dashesToSpaces( string $string, bool $limit = true)

Parameters

string $string
bool $limit

Return Value

string

at line line 80
final static string toSlug( string $string, bool $lower = true)

Parameters

string $string
bool $lower

Return Value

string

at line line 92
final static string toPhoneNumber( string $string)

Parameters

string $string

Return Value

string

at line line 110
final static string toPhoneNumberFormatted( string $string, string $format = '+%COUNTRY% (%NPA%) %CO%-%LINE%')

Parameters

string $string
string $format

Return Value

string

at line line 131
final static bool compare( string $a, string $b, string $encoding = 'UTF-8')

Parameters

string $a
string $b
string $encoding

Return Value

bool

at line line 156
final static string[] split( string $string)

Parameters

string $string

Return Value

string[]

at line line 173
final static string camelToSnakeCase( string $string)

Parameters

string $string

Return Value

string

at line line 183
final static string camelToPascalCase( string $string)

Parameters

string $string

Return Value

string

at line line 193
final static string pascalToSnakeCase( string $string)

Parameters

string $string

Return Value

string

at line line 203
final static string pascalToCamelCase( string $string)

Parameters

string $string

Return Value

string

at line line 213
final static string snakeToCamelCase( string $string)

Parameters

string $string

Return Value

string

at line line 227
final static string snakeToPascalCase( string $string)

Parameters

string $string

Return Value

string