note 113651 added to function.dechex
| From: | KoryP. | Date: | Sun, 10 Nov 2013 15:56:27 +0000 |
| Subject: | note 113651 added to function.dechex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197486@lists.php.net to get a copy of this message | ||
Or you could use this for an RGBA color.
function toAlphaColor($n,$a)
{
$rgb = substr("000000".dechex($n),-6);
$alpha = substr("00".dechex($a),-2);
return("#".$rgb.$alpha);
}
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/function.dechex.php
Edit -- https://master.php.net/note/edit/113651
Del: integrated -- https://master.php.net/note/delete/113651/integrated
Del: useless -- https://master.php.net/note/delete/113651/useless
Del: bad code -- https://master.php.net/note/delete/113651/bad+code
Del: spam -- https://master.php.net/note/delete/113651/spam
Del: non-english -- https://master.php.net/note/delete/113651/non-english
Del: in docs -- https://master.php.net/note/delete/113651/in+docs
Del: other reasons-- https://master.php.net/note/delete/113651
Reject -- https://master.php.net/note/reject/113651
Search -- https://master.php.net/manage/user-notes.php