Comments on: Convert Color Hex to RGB and RGB to Hex using PHP https://www.codexworld.com/convert-color-hex-to-rgb-and-rgb-to-hex-using-php/ Web & Mobile App Development Company Thu, 01 Sep 2022 05:41:08 +0000 hourly 1 By: reza https://www.codexworld.com/convert-color-hex-to-rgb-and-rgb-to-hex-using-php/comment-page-1/#comment-201778 Thu, 01 Sep 2022 05:41:08 +0000 https://www.codexworld.com/?p=752#comment-201778 nice tankyou

]]>
By: Alex https://www.codexworld.com/convert-color-hex-to-rgb-and-rgb-to-hex-using-php/comment-page-1/#comment-93345 Sun, 22 Sep 2019 20:07:43 +0000 https://www.codexworld.com/?p=752#comment-93345 Good afternoon! I tried your function at work – for some reason, it returns an incorrect result ..

$ rgb_only = “0, 255, 0”;
$ hex_accent_color = rgb2hex2rgb ($ rgb_only);

Returns: # 0000FF is Violet instead of pure green !?

Must be: “0, 255, 0” -> 00ff00
And the function returns: “0, 255, 0” -> 0000ff

]]>