NL
NL
compress_hex_colors(string $css) : string
Utility method to compress hex color values of the form #AABBCC to #ABC or short color name.
DOES NOT compress CSS ID selectors which match the above pattern (which would break things). e.g. #AddressForm { ... }
DOES NOT compress IE filters, which have hex color values (which would break things). e.g. filter: chroma(color="#FFFFFF");
DOES NOT compress invalid hex values. e.g. background-color: #aabbccdd
string | $css |
str_slice(string $str, integer $start, integer|boolean $end = FALSE) : string
PHP port of Javascript's "slice" function for strings only Author: Tubal Martin http://blog.margenn.com Tests: http://margenn.com/tubal/str_slice/
string | $str | |
integer | $start | index |
integer|boolean | $end | index (optional) |