note 103782 modified in function.strtotime by danbrown

From: Date: Tue, 03 May 2011 16:21:26 +0000
Subject: note 103782 modified in function.strtotime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179380@lists.php.net to get a copy of this message
When trying the following code <?php echo("date("l jS \o\f F Y",strtotime("2011-05-01"))"); ?> i was getting the output "Tuesday 3rd o May 2011". I found that in order to get the word "of" i needed to double escape the f so i used this code instead which works. <?php echo("date("l jS \o\\f F Y",strtotime("2011-05-01"))"); ?> --was-- When trying the following code echo("date("l jS \o\f F Y",strtotime("2011-05-01"))"); i was getting the output "Tuesday 3rd o May 2011". I found that in order to get the word "of" i needed to double escape the f so i used this code instead which works. echo("date("l jS \o\\f F Y",strtotime("2011-05-01"))"); http://php.net/manual/en/function.strtotime.php

« previous php.notes (#179380) next »