Keep track of where you left off & more. Sign up today

Simple HEX to RGB in PHP

                /**
* @return an array of rgb values
*/
protected function hex2rgb($hex = null ){
    return sscanf($hex, "#%02x%02x%02x");
}
            

Other Snippets

View all Snippets