lundi 11 janvier 2016

PHP if prior to date echo this

Trying to do a simple echo statement if prior to date except I'm only getting the else echo ...

<?php 
if (time() < strftime('2016-01-13 00:00:00'))
  {echo "You're early!";} 
else {
 echo "You're late!";}
?>

Little help. Thanks. Yes, I'm new to this.

Aucun commentaire:

Enregistrer un commentaire