Php code to check the content is hexadecimal?
This php script checks is the string $color is a hex color or not. The second IF statement will add the pound symbol at the beginning if it is missing from the hex color value.
This php script checks is the string $color is a hex color or not. The second IF statement will add the pound symbol at the beginning if it is missing from the hex color value.