note 22494 added to function.hexdec
| From: | darrenatzoe.co.nz@php.net | Date: | Thu, 20 Jun 2002 08:45:38 +0000 |
| Subject: | note 22494 added to function.hexdec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32032@lists.php.net to get a copy of this message | ||
a handy function to use is hexdec():
$color = '99CCFF';
imagecolorallocate($im,hexdec(substr($color,0,2)),
hexdec(substr($color,2,2)),
hexdec(substr($color,4,2)));
--
http://www.php.net/manual/en/function.hexdec.php
http://master.php.net/manage/user-notes.php?action=edit+22494
http://master.php.net/manage/user-notes.php?action=delete+22494
http://master.php.net/manage/user-notes.php?action=reject+22494