Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

validate timestamp php

function isValidTimestamp($timestamp)
{
   return ((string) (int) $timestamp === $timestamp)
       && ($timestamp <= PHP_INT_MAX)
       && ($timestamp >= ~PHP_INT_MAX);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #validate #timestamp #php
ADD COMMENT
Topic
Name
2+4 =