src/MvcError.php
public function adult($val, $id) {
        if (dater($val) > ( (date('Y') - 18) . date('-m-d H:i:s') )) {
            $this->add($id, 'You must be at least 18 years old.');
            return false;
        }

        return true;
    }
public function adult($val, $id) {
        if (dater($val) > ( (date('Y') - 18) . date('-m-d H:i:s') )) {
            $this->add($id, 'You must be at least 18 years old.');
            return false;
        }

        return true;
    }
public function adult ( $ val , $ id ) { if ( dater ( $ val ) > ( ( date ( 'Y' ) - 18 ) . date ( '-m-d H:i:s' ) ) ) { $ this -> add ( $ id , 'You must be at least 18 years old.' ) ; return false ; } return true ; }
Is a birth date at least 18 years old?
Is a birth date at least 18 years old?