2 /* Prototype : string strftime(string format [, int timestamp])
3 * Description: Format a local time/date according to locale settings
4 * Source code: ext/date/php_date.c
8 echo "*** Testing strftime() : usage variation ***\n";
10 // Initialise function arguments not being substituted (if any)
11 setlocale(LC_ALL
, "en_US");
12 date_default_timezone_set("Asia/Calcutta");
13 $timestamp = mktime(8, 8, 8, 8, 8, 2008);
15 //array of values to iterate over
17 'The ISO 8601:1988 week number' => "%V",
18 'Weekday as decimal' => "%u",
21 // loop through each element of the array for timestamp
23 foreach($inputs as $key =>$value) {
25 var_dump( strftime($value) );
26 var_dump( strftime($value, $timestamp) );