Convert RGB Color Value To Hexadecimal
A simple way to convert RGB colors to their hexadecimal values by using the dechex() function.
|
On Monday, October 6th 2008 at 09:09 AM By Andrew Pociu (View Profile)
    (Rated 0 with 0 votes) |
Contextual Ads
More PHP Resources
Advertisement
function RGBToHex($RGBValues)
{
$HexValue = "";
foreach ($RGBValues as $RGBValue)
{
}
}
// How to use the function to convert an RGB color to hex
echo RGBToHex (array('R'=> 255, 'G'=> 202, 'B'=> 91));
|
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|
Rate this code snippet
Current Comments
There are no comments.
|
Related Source Code
There is no related code.
Related Tutorials
There are no related tutorials.
PHP Job Search
|