09/10/2018, 18:17
Hàm kiểm tra dữ liệu nhập vào kiểu Date/Time trong PHP
Các đại ca cho mình hỏi trong PHP hàm kiểm tra dữ liệu nhập vào kiểu Date/Time là hàm gì vậy?
Xin cám ơn
Xin cám ơn
Bài liên quan
Validate a date/time
int checkdate (int month, int day, int year)
Returns true if the date given is valid; otherwise returns false. Checks the validity of the date formed by the
arguments. A date is considered valid if:
• year is between 0 and 32767 inclusive
• month is between 1 and 12 inclusive
• Dayis within the allowed number of days for the given month. Leap years are taken into consideration.
Or Compare it with time()