Re: Adding Time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 27, 2010 at 10:26 PM, Gary <gwpaul@xxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux