Jump to content

if and array


manalnor

Recommended Posts

Hello.

 

if we have function called

$timestamp = mktime($timestamp); 

it knows the time now okay

 

then let

$timestamp1 = mktime(0, 0, 0, 12, 20, 2010);

means at month 12 day 20 year 2010

 

and

$timestamp2 = mktime(0, 0, 0, 12, 21, 2010);

and

$timestamp3 = mktime(0, 0, 0, 12, 22, 2010);

 

and if i can say

 

 

if ( $timestamp > $timestamp1 ) 
{ 
echo = "love you";
} 

 

as you can see if now time is more than tamp1 say love you

how than i can say

 

if now time is more than $timestamp1 say love you and if more than $timestamp2 say love you and if more than $timestamp3 say love you....ect

 

hope you've got the point

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/196238-if-and-array/
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.