Re: Adding Time

From: Date: Sat, 27 Mar 2010 22:36:13 +0000
Subject: Re: Adding Time
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-303544@lists.php.net to get a copy of this message
On Sat, Mar 27, 2010 at 10:26 PM, Gary <gwpaul@ptd.net> wrote: > [...] > > strtotime('$pay_date')); > > [...] > If you want the value of $pay_date to be the argument of strtotime, you need to enclose it in double quotes (do the same for all other occurrences). Try: strtotime("$pay_date"); [...] When a string <http://www.php.net/manual/en/language.types.string.php> is specified in double quotes or with heredoc, variables<http://www.php.net/manual/en/language.variables.php>are parsed within it. [...] from: http://php.net/manual/en/language.types.string.php Beginning of Variable Parsing Section

« previous php.general (#303544) next »