Possible Duplicate:
Check whether the string is a unix timestamp
i need validate a unix time with regexp on php.
Example:
<?php
is_unix( $unix )
{
if( preg_match( '/([0-9]+)/' , $unix ) )
{
return true;
}
return false;
}
?>
Thanks 😉
How about: