A simple php validation class using regex and lengths for parameters.