1--TEST--
2Test strftime() function : usage variation - Passing literal related strings to format argument.
3--FILE--
4<?php
5echo "*** Testing strftime() : usage variation ***\n";
6
7// Initialise function arguments not being substituted (if any)
8setlocale(LC_ALL, "en_US");
9date_default_timezone_set("Asia/Calcutta");
10$timestamp = mktime(8, 8, 8, 8, 8, 2008);
11$format = "%%";
12
13echo "\n-- Testing strftime() function with a literal % character to format --\n";
14var_dump( strftime($format) );
15var_dump( strftime($format, $timestamp) );
16
17?>
18--EXPECT--
19*** Testing strftime() : usage variation ***
20
21-- Testing strftime() function with a literal % character to format --
22string(1) "%"
23string(1) "%"
24