Sometimes we need to make up a timestamp to save in a database, or to compare with other dates. mktime() essentially creates the same thing that time() does but according to the dates you provide inside of mktime(). Here is the form that you would put in it.
mktime ([ int $hour = date("H") [, int $minute = date("i") [, int $second = date("s") [, int $month = date("n") [, int $day = date("j") [, int $year = date("Y") [, int $is_dst = -1 ]]]]]]] )
the brackets mean that they are optional values, however, since the first is optional, and you want to fill in say the 4th, you will have to fill in all the parameters until that point.
-
11Nov
Posted by Kloplop321 @ 6:21 pm