Joke Collection Website - Public benefit messages - How to automatically verify in thinkphp, the end time is after the start.

How to automatically verify in thinkphp, the end time is after the start.

Use the following rules:

$ rules? =? [

end _ date‘= & gt; ? After: 2016-3-18'? //20 16-3- 18 is the start time.

]; For details, please refer to the chapter content and webpage link of thinkphp5 manual-Verification-Verification Rules.