Help with some dates


Posted on 16th Feb 2014 07:03 pm by admin

I have a list of dates in an array:

$mondays = array(
strtotime("October 12, 2009"),
Did you know?Explore Trending and Topic pages for more stories like this.
strtotime("October 19, 2009"),
strtotime("October 26, 2009"),
strtotime("November 2, 2009"),
strtotime("November 9, 2009"),
strtotime("November 16, 2009")
);


It is an array of the next few mondays. I am wondering how I could figure out what the next monday in the array is depending on the current time, using time();

I cannot use strtotime("next monday") or strtotime("+1 monday") because the server I am working on is using a very old version of PHP (4.3.10-22) and it has a bug when I use strtotime("next monday");...I am also not able to upgrade the version of PHP.
No comments posted yet

Your Answer:

Login to answer
286 Like 16 Dislike
Previous forums Next forums
Other forums

Is there a more efficient way to code this than what I have?
I have three associative arrays.

$combinedSettings
$userSettings
$defaultSettings

does anyone know a php script to send mail using gmails/googles free smtp server
cause i heard u can do that but i dont know how

I got my hosting suspended XD
So I saw this challenge a day or so ago

http://www.programming-challenges.com/pg.php?page=dow

How to sum these output values
Hi

I need sum the month totals
SELECT region_name, area_name ,SUM (CASE WHEN S

Give me all your tricks for minimizing jar file size

Hi, I'm coming close to releasing my J2ME game... I am kicking up against the 64k size barrier w

php mysql query from input textbox
Hi,

I have a text box, in that i have given the mysql query. I can able to get the query in v

Socket Server Response Headers
Earlier I had a post about my Socket Server, I wasn't able to get it to connect, now I can

I

single values into sql field
i have a form which i want the user to able to select multiple answers. But i want the answers to be

Get Total From While Loop
I'm trying to get the total for each product and add them for a Grand Total to list outside the loop

PHP Array quick help
I need

$_SESSION{'username'} to be like this:


if $_SESSION['username'] = "gay

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash