note 58025 added to function.strtotime

From: Date: Fri, 21 Oct 2005 18:00:16 +0000
Subject: note 58025 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-97376@lists.php.net to get a copy of this message
In Leftward Shift's message, the strtotime function is not malfunctioning, the code is proper, the results are as expected providing you understand that varialbes will not be escaped (Replaced) from an inline single quote string. (i.e. <?php 'next $weekday' ?> will be absolutely 'next $weekday' resulting in strtotime returning 0, and $now (Something other than 0) will always be greater than zero) Either double quote it or put the weekday afterwards -- <?php $Time = strtotime('next ' . $weekday, $Time); ?> ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58025 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58025&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58025&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58025&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58025&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58025&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58025&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58025&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58025&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97376) next »