Class Util
public static
string
|
|
public static
string
|
#
stripUtf8Bom( string $string )
If the given string begins with the UTF-8 BOM (byte order mark), remove it and return whatever is left. Otherwise, return the original string untouched. |
public static
boolean
|
#
startsWith( string $s, string $prefix, boolean $caseInsensitive = false )
Return whether |
public static
string|null
|
#
stripPrefix( string $s, string $prefix, boolean $caseInsensitive = false )
If |
string |
SPECIAL_ESCAPE_IN
|
#
"\r\n\t\\\""
|
string |
SPECIAL_ESCAPE_OUT
|
#
"rnt\\\""
|