1--TEST-- 2Test mktime() function : basic functionality 3--FILE-- 4<?php 5/* Prototype : int 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 ]]]]]]] ) 6 * Description: Get Unix timestamp for a date 7 * Source code: ext/date/php_date.c 8 * Alias to functions: 9 */ 10 11//Set the default time zone 12date_default_timezone_set("Europe/London"); 13 14echo "*** Testing DateTime::modify() : basic functionality ***\n"; 15 16$hour = 10; 17$minute = 30; 18$sec = 45; 19$month = 7; 20$day = 2; 21$year = 1963; 22 23var_dump( mktime($hour) ); 24var_dump( mktime($hour, $minute) ); 25var_dump( mktime($hour, $minute, $sec) ); 26var_dump( mktime($hour, $minute, $sec, $month) ); 27var_dump( mktime($hour, $minute, $sec, $month, $day) ); 28var_dump( mktime($hour, $minute, $sec, $month, $day, $year) ); 29 30?> 31===DONE=== 32--EXPECTF-- 33*** Testing DateTime::modify() : basic functionality *** 34int(%i) 35int(%i) 36int(%i) 37int(%i) 38int(%i) 39int(%i) 40===DONE=== 41