I take input from the user in the form field. I want to make sure that this input must be in a template like "2012-xxx-111", i.e. The first four must be integers, and after that there must be a “-” sign, followed by two or three alphabets, followed by a “-” and at the end any integer consisting of 3 numbers. Help me do all this in php. Thanks your help will be appreciated.
user5310490
source
share