[PHP] function to check variable is a timestamp...

Associate
Joined
2 Apr 2004
Posts
674
Location
Melbourne
Hey all,

I'm having a slow day, Is there anyway with php to check that an integer is a valid timestamp?

bascially I just need to check that its a 10 digit long integer as I'm getting from a database and just need to make sure that converting it to a RFC formatted date doesn't chuck up any errors.

cheers.
 
Back
Top Bottom