How do you compare two timestamps in php?

Jamaal E

New member
I have a variable named $date that takes the timestamp from a database. I want to compare that variable with the current time using the time() function wich I stored in a variable called $current.

I tried doing something like:
If ($date < $current)

and it didn't seem to work. What am I doing wrong?
 
Back
Top