note 117867 deleted from function.date by peehaa

From: Date: Fri, 06 Jan 2017 15:57:18 +0000
Subject: note 117867 deleted from function.date by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208712@lists.php.net to get a copy of this message
Note Submitter: akshayinbox at gmail dot com ---- When using date(), be sure to "double-escape" certain characters, for example, if printing the word "at", double escape "t" otherwise it will be treated as "tab" simply leading to a space being inserted. Example: <?php echo "Last updated ".date("M j<\s\u\p>S</\s\u\p\>, Y \a\\t h:i A"); ?> will output Last updated Aug 23rd 2015 at 2:47 PM (assuming today is Aug 23rd 2015 and it is 2:47 PM)

« previous php.notes (#208712) next »