I have a string and I need to find out whether it is a unix timestamp or not, how can I do that effectively?
I found this thread via Google, but it doesn\'t come up
You want to check if a string contains a high number?
is_numeric() is the key
Or convert it to DateTime and do some checks with it like an expected date range.