note 109134 deleted from function.preg-replace by cmb
| From: | cmb@php.net | Date: | Mon, 21 Nov 2016 19:35:13 +0000 |
| Subject: | note 109134 deleted from function.preg-replace by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207301@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at antoinebouchard dot net
----
It may seem useless, but the font tag in Internet Explorer won't recognize compressed hexa
values. This is a simple function to uncompress hexa values in the font tag
<?php
function colorfix($text) {
return preg_replace('/"#([a-f0-9])([a-f0-9])([a-f0-9])"/i',
'"#$1$1$2$2$3$3"', $text);
}
?>