What PHP code can I use to stop showing text at a certain time?
For example: "Come to this event at 3PM on Monday!"
I don't want that to show after 3:01PM on the site.
What PHP code can I use to stop showing text at a certain time?
For example: "Come to this event at 3PM on Monday!"
I don't want that to show after 3:01PM on the site.
<?PHP
$when = strtotime('April 26, 2010 15:00:00');
if ($when > time()){
echo "Be there at 3pm on monday or be square";
}