Valider l'horodatage php

function isValidTimestamp($timestamp)
{
   return ((string) (int) $timestamp === $timestamp)
       && ($timestamp <= PHP_INT_MAX)
       && ($timestamp >= ~PHP_INT_MAX);
}
Zeevx