1--TEST-- 2Test gmdate() function : usage variation - Passing textual representation of day formats. 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 partial textual representation of day --\n"; 12var_dump( gmdate('D') ); 13var_dump( gmdate('D', $timestamp) ); 14 15echo "\n-- Testing gmdate() function with full textual representation of day --\n"; 16var_dump( gmdate('l') ); 17var_dump( gmdate('l', $timestamp) ); 18 19echo "\n-- Testing gmdate() function with English ordinal suffix --\n"; 20var_dump( gmdate('S') ); 21var_dump( gmdate('S', $timestamp) ); 22 23?> 24--EXPECTF-- 25*** Testing gmdate() : usage variation *** 26 27-- Testing gmdate() function with partial textual representation of day -- 28string(%d) "%s" 29string(3) "Fri" 30 31-- Testing gmdate() function with full textual representation of day -- 32string(%d) "%s" 33string(6) "Friday" 34 35-- Testing gmdate() function with English ordinal suffix -- 36string(%d) "%s" 37string(2) "th" 38