private function _rgb2hex(array $rgb)
	{
		if (isset($rgb['alpha']))
		{
			unset($rgb['alpha']);
		}
		$out = "";
		foreach ($rgb as $c)
		{
			$hex = base_convert($c, 10, 16);
			$out .= ($c < 16) ? ("0" . $hex) : $hex;
		}
		return '#' . strtoupper($out);
	}
private function _rgb2hex(array $rgb)
	{
		if (isset($rgb['alpha']))
		{
			unset($rgb['alpha']);
		}
		$out = "";
		foreach ($rgb as $c)
		{
			$hex = base_convert($c, 10, 16);
			$out .= ($c < 16) ? ("0" . $hex) : $hex;
		}
		return '#' . strtoupper($out);
	}
private function _rgb2hex ( array $ rgb ) { if ( isset ( $ rgb [ 'alpha' ] ) ) { unset ( $ rgb [ 'alpha' ] ) ; } $ out = "" ; foreach ( $ rgb as $ c ) { $ hex = base_convert ( $ c , 10 , 16 ) ; $ out .= ( $ c < 16 ) ? ( "0" . $ hex ) : $ hex ; } return '#' . strtoupper ( $ out ) ; }
Cinvert an RGB value to hex

@param   array   $rgb
@return  string
Cinvert an RGB value to hex