note 6918 modified in date by zak
| From: | zak@php.net | Date: | Thu, 02 Nov 2000 01:43:11 +0000 |
| Subject: | note 6918 modified in date by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7254@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 month.');
// This will print out something like:
// It is the 1st day of the month.
print date ('\I\t \i\s \t\h\e jS \d\a\y of \t\h\e \m\o\n\t\h.');
http://www.php.net/manual/function.date.php