Method escape
Escapes meta characters within a string
Parameters:
Returns a String
(Escaped string)
Method explode
Splits a string on comma, or a parameter, and trims each value in the resulting Array
Parameters:
obj must be a String.
(String to capitalize)
arg must be a String.
(String to split on)
Returns an Array
(Array of the exploded String)
Method hyphenate
Replaces all spaces in a string with dashes
Parameters:
obj must be a String.
(String to hyphenate)
camel must be a Boolean.
([Optional] Hyphenate camelCase)
Returns a String
(String with dashes instead of spaces)
Method isAlphaNum
Tests if a string is alpha-numeric
Parameters:
Returns a Boolean
(Result of test)
Method isBoolean
Tests if a string is a boolean
Parameters:
Returns a Boolean
(Result of test)
Method isDate
Tests if a string a date
Parameters:
Returns a Boolean
(Result of test)
Method isDomain
Tests if a string is a domain
Parameters:
Returns a Boolean
(Result of test)
Method isEmail
Tests if a string is an email address
Parameters:
Returns a Boolean
(Result of test)
Method isEmpty
Tests if a string is empty
Parameters:
Returns a Boolean
(Result of test)
Method isIP
Tests if a string is an IP address
Parameters:
Returns a Boolean
(Result of test)
Method isInt
Tests if a string is an integer
Parameters:
Returns a Boolean
(Result of test)
Method isNumber
Tests if a string is a number
Parameters:
Returns a Boolean
(Result of test)
Method isPhone
Tests if a string is a phone number
Parameters:
Returns a Boolean
(Result of test)
Method isUrl
Tests if a string is a URL
Parameters:
Returns a Boolean
(Result of test)
Method singular
Returns singular form of the string
Parameters:
Returns a String
(Transformed string)
Method toCamelCase
Transforms the case of a String into CamelCase
Parameters:
Returns a String
(Camel case String)
Method trim
Trims the whitespace around a String
Parameters:
Returns a String
(Trimmed String)
Method unCamelCase
Uncamelcases the String
Parameters:
Returns a String
(Uncamelcased String)
Method uncapitalize
Uncapitalizes the String
Parameters:
Returns a String
(Uncapitalized String)
Method unhyphenate
Replaces all hyphens with spaces
Parameters:
obj must be a String.
(String to unhypenate)
caps must be a Boolean.
([Optional] True to capitalize each word)
Returns a String
(Unhyphenated String)
Method capitalize
Parameters:
obj must be a String.
(String to capitalize)
all must be a Boolean.
([Optional] Capitalize each word)
Returns a String
(Capitalized String)