Ok here's a puzzle which i'm not sure how to go about....
I've got an array which looks like this:
They are all timestamps.
Basically, if I specify a value, for example 1142540000, I want it to find all values within 7 days of that value, whether in the past or the future, and then ultimately, return the closest.
How would I go about this/has anyone done this before?
Cheers,
Rich
I've got an array which looks like this:
Code:
[0] => 1140220800
[1] => 1142640000
[2] => 1140120800
[3] => 1142340000
Basically, if I specify a value, for example 1142540000, I want it to find all values within 7 days of that value, whether in the past or the future, and then ultimately, return the closest.
How would I go about this/has anyone done this before?
Cheers,
Rich