note 6918 modified in date by zak
| From: | zak@php.net | Date: | Thu, 02 Nov 2000 01:35:50 +0000 |
| Subject: | note 6918 modified in date by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7252@lists.php.net to get a copy of this message | ||
// To print out the literal value of a character that has special meaning
// within a date() format string, place a single backslash in front of the letter.
// This will print out a bunch of junk
print date ('It is the jS day of the mS month of Y') . '<br>';
// This will print out something like:
// It is the 1st day of the 11st month of 2000
print date ('\I\t \i\s \t\h\e jS \d\a\y of \t\h\e mS \m\o\n\t\h \o\f Y');
http://www.php.net/manual/function.date.php