1--TEST--
2Test gmdate() function : usage variation - Passing Week representation to format.
3--FILE--
4<?php
5echo "*** Testing gmdate() : usage variation ***\n";
6
7// Initialise all required variables
8date_default_timezone_set('UTC');
9$timestamp = mktime(8, 8, 8, 8, 8, 2008);
10
11echo "\n-- Testing gmdate() function with ISO-8601 week number of year format --\n";
12var_dump( gmdate('W') );
13var_dump( gmdate('W', $timestamp) );
14
15?>
16--EXPECTF--
17*** Testing gmdate() : usage variation ***
18
19-- Testing gmdate() function with ISO-8601 week number of year format --
20string(%d) "%d"
21string(2) "32"
22