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--EXPECTF-- 19*** Testing strftime() : usage variation *** 20 21-- Testing strftime() function with a literal % character to format -- 22 23Deprecated: Function strftime() is deprecated in %s on line %d 24string(1) "%" 25 26Deprecated: Function strftime() is deprecated in %s on line %d 27string(1) "%" 28