function _hexToPHPColor($hex)
    {
        $length = strlen($hex);
        $dr = hexdec(substr($hex, $length - 6, 2));
        $dg = hexdec(substr($hex, $length - 4, 2));
        $db = hexdec(substr($hex, $length - 2, 2));
        $color = ($dr << 16) + ($dg << 8) + $db;
        return $color;
    }
function _hexToPHPColor($hex)
    {
        $length = strlen($hex);
        $dr = hexdec(substr($hex, $length - 6, 2));
        $dg = hexdec(substr($hex, $length - 4, 2));
        $db = hexdec(substr($hex, $length - 2, 2));
        $color = ($dr << 16) + ($dg << 8) + $db;
        return $color;
    }
function _hexToPHPColor ( $ hex ) { $ length = strlen ( $ hex ) ; $ dr = hexdec ( substr ( $ hex , $ length - 6 , 2 ) ) ; $ dg = hexdec ( substr ( $ hex , $ length - 4 , 2 ) ) ; $ db = hexdec ( substr ( $ hex , $ length - 2 , 2 ) ) ; $ color = ( $ dr << 16 ) + ( $ dg << 8 ) + $ db ; return $ color ; }
Convert a color defined in hexvalues to the PHP color format

@access private
@param string $hex color value in hexformat (e.g. '#FF0000')
@return integer color value in PHP format
Convert a color defined in hexvalues to the PHP color format