2
Test gmmktime() function : usage variation - Checking with few optional arguments.
5
/* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]])
6
* Description: Get UNIX timestamp for a GMT date
7
* Source code: ext/date/php_date.c
11
echo "*** Testing gmmktime() : usage variation ***\n";
13
// Initialise all required variables
20
echo "\n-- Testing gmmktime() function with one optional argument --\n";
21
var_dump( gmmktime($hour) );
23
echo "\n-- Testing gmmktime() function with two optional argument --\n";
24
var_dump( gmmktime($hour, $min) );
26
echo "\n-- Testing gmmktime() function with three optional argument --\n";
27
var_dump( gmmktime($hour, $min, $sec) );
29
echo "\n-- Testing gmmktime() function with four optional argument --\n";
30
var_dump( gmmktime($hour, $min, $sec, $mon) );
32
echo "\n-- Testing gmmktime() function with five optional argument --\n";
33
var_dump( gmmktime($hour, $min, $sec, $mon, $day) );
38
*** Testing gmmktime() : usage variation ***
40
-- Testing gmmktime() function with one optional argument --
43
-- Testing gmmktime() function with two optional argument --
46
-- Testing gmmktime() function with three optional argument --
49
-- Testing gmmktime() function with four optional argument --
52
-- Testing gmmktime() function with five optional argument --