Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $color = "#ffffff";
- list($r, $g, $b) = array_map('hexdec', str_split(str_replace("#", "", $color), 2));
- var_dump(compact('r', 'g', 'b'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement