note 95842 deleted from function.strtotime by thiago

From: Date: Mon, 25 Jan 2010 12:47:33 +0000
Subject: note 95842 deleted from function.strtotime by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165272@lists.php.net to get a copy of this message
Note Submitter: anon ---- Something worth bearing in mind for things like <?php strtotime( 'last Monday' ); ?> is that php will return the most recent monday that happened rather than the monday of 'last week'. For example <?php # Lets say today is Tuesday 19th January 2010 echo date( 'd/m/Y', strtotime( 'last Monday' ) ); # 18/01/2010 ?> when to me, 'last monday' would be 11/01/2010.

« previous php.notes (#165272) next »