<?php $value = "#ffffff"; $hex_r = substr($value, 1, 2); $hex_g = substr($value, 3, 2); $hex_b = substr($value, 5, 2); echo intval($hex_r, 16);
You have javascript disabled. You will not be able to edit any code.