note 95073 deleted from function.mktime by danbrown
| From: | danbrown@php.net | Date: | Sat, 12 Dec 2009 18:43:51 +0000 |
| Subject: | note 95073 deleted from function.mktime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163891@lists.php.net to get a copy of this message | ||
Note Submitter: dlorre at yahoo dot com
----
On Windows systems you strip the leading spaces with the # character after the % character.
Hence, the replacement for %e will be %#d :
$d = mktime(0, 0, 0, 2, 1, 2010) ;
echo strftime("The day of the month is %d\n", $d) ;
echo strftime("The day of the month is %#d\n", $d) ;
will output:
The day of the month is 01
The day of the month is 1