Various useful functions for manipulating text
CloneableInstantiable
Methods |
public static arrayToJS(array $array, string $stringQuote = '', string $newLine = '') : string Converts a PHP array to a JavaScript array that can be used directly as JavaScript (not JSON)
|
public static capitalSplit(string $key) : string Split a string into words based on capital letters. Successive capital letters are considered an abbreviation and grouped together. |
public static htmlentities(?string $string) : string Shorthand to encode a string in UTF-8
|
public static replace_unicode_escape_sequence(array $match) : string
|
public static unhtmlentities(?string $string) : string Decode hmtl entities
|
public static unicode_decode(string $str) : string |
Methods |
public static arrayToJS(array $array, string $stringQuote = '', string $newLine = '') : string Converts a PHP array to a JavaScript array that can be used directly as JavaScript (not JSON)
|
public static capitalSplit(string $key) : string Split a string into words based on capital letters. Successive capital letters are considered an abbreviation and grouped together. |
public static htmlentities(?string $string) : string Shorthand to encode a string in UTF-8
|
public static replace_unicode_escape_sequence(array $match) : string
|
public static unhtmlentities(?string $string) : string Decode hmtl entities
|
public static unicode_decode(string $str) : string |