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

Changes to hosting company's server has affected web contact form
I started a thread a couple of months ago about the contact forms on my client's website. Basically

Help with ORDER BY
Hello. I would like to order by ascending States, then Cities, then Gyms in the following code, but

Dynamic links in an include file
I am working on a small piece of code that counts records from a database and displays the result to

update the selected existing records of database
Hi frndz,
I am new to php and get stuck....

Edit.php > Update.php > Updatea

ECC6 - Single sign-on
We are in the process of upgrading to ECC 6 which will support single sign on with user passwords al

Table Control
Hi Guru's,

I've created a Module pool program, which contains the Table Control.

Multiple upload and Resize
I would like some help on my script I have the for my index.php

////

<html&

Calling strings from other php class
I have test1.php{
$string1;
$string2;
....
... //10 strings in this class <

remove trailing slash from array
I have the following array which contains trailing slashes I need to remove. What is the best way to

Reading waves
Hi,

I am trying to find a way of finding the highs and lows on a graph line, the line points

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