JS

JS

HOT TUTORIALS

PHP: Convert Hex Color to RGB, RGB to Hex Color

<?php define('HEX2RBG_ARRAY', 1); define('HEX2RBG_STRING', 2); function hex2rgb($hex, $return = HEX2RBG_ARRAY) { $hex = str_replace("#", "", $hex); if (strlen($hex) == 3) { ...