rgb2hex() статический публичный Метод

Convert rgb color to hex
static public rgb2hex ( array $rgb ) : string
$rgb array
Результат string
Пример #1
0
 /**
  * Convert palette to array of hex colors
  * 
  * @param $palette
  * @return array
  */
 private function _paletteToHex($palette)
 {
     $r = array();
     foreach ($palette as $paletteColor) {
         array_push($r, Imager_ColorService::rgb2hex($paletteColor));
     }
     return $r;
 }