validate_domain

Checks if the value is a valid domain (alpha-numeric and dash only)

Parameters
mixed $value

The value being checked

#
Returns
boolean

TRUE if the value has letters, numbers and dashes only, FALSE otherwise