theknight
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Repopulating an array after every 4 weeks
in PHP Coding Help
Posted
Here is my code:
This gets the four weeks following the date set and store it in an array:
Each slot is the equivalent of a week e.g. week 1, week 2, week 3, week 4,week 5
Now depending on which week it is, a set data is displayed which is hardcoded.
Now what I want to do is to reset the array on week 4 (for the new month), without the array being repopulated with the old date:
everytime the script is run.
How do I do this?