Strings
Members
-
CSS :void
-
Call css from url/path
-
capitalize :string
-
Capitalize all first character string
Example
[PHP] ucwords($string)
-
hexD :string
-
Hex Decrypt
-
hexE :string
-
Hex encrypt
-
includesArray :boolean
-
Check if string contains some text from array of substrings
-
isEmpty :boolean
-
Check if string empty or blank
-
isMatch :function
-
String match result as boolean
-
match :RegExpMatchArray|null
-
Matches a string an object that supports being matched against, and returns an array containing the results of that search.
-
parse_url :object
-
Parse url into part object
Properties:
Name Type Description protocol
string host
string hostname
string port
string pathname
string search
string searchObject
Record.<any, any> hash
string protohost
string -
printf :function
-
Printf
Example
console.log("Hello I am " + "%s %s".printf(["foo", "bar"]));
-
replace :string
-
Replaces text in a string, using an object that supports replacement within a string.
-
replace :string
-
Replaces text in a string, using an object that supports replacement within a string.
-
replaceAll :function
-
Replace all occurrences of a string
- Shim ES2021 prototype
-
replaceArr :string
-
Replace string by array pattern
-
rot13 :string
-
PHP str_rot13 equivalent
-
search :number
-
Finds the first substring match in a regular expression search.
-
split :Array
-
Split a string into substrings using the specified separator and return them as an array.
-
toHtmlEntities :string
-
Convert a string to HTML entities
Example
"Test´†®¥¨©˙∫ø…ˆƒ∆÷∑™ƒ∆æø𣨠ƒ™en tést".toHtmlEntities(); console.log("Entities:", str);
-
truncate :function
-
Truncate string
Methods
-
CSS()
-
Load css