Jump to content

strtotime using Variables


mattichu

Recommended Posts

Hi!

 

the following code sucessfully outputs a timestamp.

 

$datealt=strtotime('2012-03-13 ,23:13:00');

 

The following however does not:

 

$datealt=strtotime('$date ,$hours:$minutes:00');

 

I have checked if the variables echo out and they do..

 

any clues much appreciated :)

 

x

Link to comment
https://forums.phpfreaks.com/topic/258791-strtotime-using-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.