public function hexa2dec($col)
    {
        if ('#' === substr($col, 0, 1)) {
            $col = substr($col, 1);
        }

        return array(
            base_convert(substr($col, 0, 2), 16, 10),
            base_convert(substr($col, 2, 2), 16, 10),
            base_convert(substr($col, 4, 2), 16, 10),
        );
    }
public function hexa2dec($col)
    {
        if ('#' === substr($col, 0, 1)) {
            $col = substr($col, 1);
        }

        return array(
            base_convert(substr($col, 0, 2), 16, 10),
            base_convert(substr($col, 2, 2), 16, 10),
            base_convert(substr($col, 4, 2), 16, 10),
        );
    }
public function hexa2dec ( $ col ) { if ( '#' === substr ( $ col , 0 , 1 ) ) { $ col = substr ( $ col , 1 ) ; } return array ( base_convert ( substr ( $ col , 0 , 2 ) , 16 , 10 ) , base_convert ( substr ( $ col , 2 , 2 ) , 16 , 10 ) , base_convert ( substr ( $ col , 4 , 2 ) , 16 , 10 ) , ) ; }
Convert an hexadecimal color to an rgb.

@param string $col The hexadecimal color

@return array Numeric index (0: R, 1: V and 2: B)
Convert an hexadecimal color to an rgb .