| Viewed 128 times

How should check if a string is a valid hex code in PHP


A hex code must begin with a pound key # and is exactly 6 characters in length.

PHP