Tuesday, August 4, 2009

PHP - Get a range of dates between two dates

function dateRangeArray($start, $end)
{
$range = array();

if (is_string($start) === true) $start = strtotime($start);
if (is_string($end) === true ) $end = strtotime($end);

do {
$range[] = date('Y-m-d', $start);
$start = strtotime("+ 1 day", $start);
} while($start <= $end);

return $range;
}

Credit: http://boonedocks.net/mike/archives/137-Creating-a-Date-Range-Array-with-PHP.html

45 comments:

Anonymous said...

Hi my first comment whoopee...[url=http://www.afrijamz.com/James117/].[/url]

Anonymous said...

like gambling? friendship las vegas? retreat the all neglected [url=http://www.casinolasvegass.com]casino[/url] las vegas at www.casinolasvegass.com with beyond 75 swell unbolted [url=http://www.casinolasvegass.com]online casino[/url] games like slots, roulette, baccarat, craps and more and touch petulant existent coins with our $400 cost-free bonus.
we comprise even-handed discerning games then the pass‚ online [url=http://www.place-a-bet.net/]casino[/url] www.place-a-bet.net! few more free casino games and free [url=http://www.2010-world-cup.info]casino bonus[/url] you can find at the 2 new [url=http://www.buy-cheap-computers.info]casino[/url] guides : www.2010-world-cup.info and www.buy-cheap-computers.info .

Anonymous said...

Witam doszedlem do wniosku ze ta strona jest najlepsza jezeli chodzi o [url=http://www.youtube.com/user/kredytstudencki]kredyt studencki[/url].

http://identi.ca/kredytstudencki

Anonymous said...

This might be a bit off-topic but I believe there are a lot of smokers here on www.blogger.com. I have recently decided to find a good manufacturer of electronic cigarettes. I'm done with paying so much for normal smokes.A friend recommended [url=http://www.insanereleases.info/greensmokef.html]G Smoke[/url] According to their website this is how they described their product:
"Green Smoke offers supreme Electronic cigarettes with spendable cartridges that compose of the highest smoke volume in the industry. With a variety of flavors and nicotine levels, Green Smoke's™ patented technology offers convenience and performance that is unmatched. G Smoke products have been independently tested for safety."
I'm thinking of buying them. Anyone else have experience with this e-cigarette?

Anonymous said...

The French gourmet cheese Bleu d'Auvergne has a wonderful aroma, a rich taste; the saltiness increases with the incidence of veining. The overall flavor is piquant but not overly sharp. Bleu d'Auvergne started life as an imitation of Roquefort, using cow's milk in place of sheep's milk. Legend has it that a peasant, around 1845, decided to inject his cheese with a blue mold that he found growing on his left-over bread (the motto being, waste not, want not). And thus, the gourmet cheese Bleu d'Auvergne was born. This French gourmet blue cheese comes from the region of Auvergne and the cheese is made from milk of Salers and Aubrac cows. The rind is very thin and so the cheese is usually wrapped in foil. The cheese is rich and creamy with a pale yellow color and scattered holes and well-defined greenish-blue veining. We cut and wrap this cheese in wedge of 8 ounces and 1 pound.

buy fresh blue cheese

[url=http://riderx.info/members/buy_5F00_fresh_5F00_blue_5F00_cheese.aspx]buy fresh blue cheese[/url]

http://riderx.info/members/buy_5F00_fresh_5F00_blue_5F00_cheese.aspx

Anonymous said...

Excellent
the easiest of all possible
thanx a ton

Anonymous said...

It's so easy to choose high quality [url=http://www.euroreplicawatches.com/]replica watches[/url] online: [url=http://www.euroreplicawatches.com/mens-swiss-watches-rolex/]Rolex replica[/url], [url=http://www.euroreplicawatches.com/mens-swiss-watches-breitling/]Breitling replica[/url], Chanel replica or any other watch from the widest variety of models and brands.

Anonymous said...

Hello,
I have developed a new clean web 2.0 wordpress theme.

Has 2 colours silver and blue, has custom header(colour or image).
I am curently working on it, so if you have suggestions let me know.

You can view live demo and download from here www.getbelle.com
If you found bug reports or you have suggestions pm me.
Wish you a happing using.

many thanks to [url=http://www.usainstantpayday.com/]USAInstantPayDay.com[/url] for helping with hosting and developement of the theme
SetKneekNep

Anonymous said...

thanks for adding me to the forum[url=http://skatede.com/forum/index.php?action=profile;u=225
].[/url]

Anonymous said...

Extraordinary internet site.

SMOtop the Swedish seo consultant offering a wide range of seo services.
[url=http://www.smotop.se]SMOTop[/url]
http://www.smotop.se/smotopbloggen/

Anonymous said...

Hey there all fellow members i m kunal from kolkata we are specialised in providing largeness emailing services no spam shit
nothing else send emails anywhere u scarceness even we are providing emails options to Craiglist Emails !!

OOH yeah i m preferable u can email Craiglist @cl emails too with us !!

we dont get any spam conduct u can send emails to anywhere u miss u can forward anything u like !

we are giving exlusive 95% inbox Gurantee with our every Plans !!

We are having all types of plans for every an individual pls stop in at intervals :- [url=http://www.inbox-mailer.com]Out Spot Inbox Mailer Repayment for more details ![/url]


pre-eminent bulk [url=http://www.associatedcontentnetwork.com]email[/url] service,largest size email software,most dedicated server,most desirable dedicated servers,excellent email blast employ,superb email marketing,unsurpassed email newsletter professional care,noise email assistance,blast email services,blast emails,at the maximum correspondence,enlargement e post,mass e post marketing
largeness e despatch software,magnitude email,size email speak,mass email addresses,volume email advertising,magnitude email application,enlargement email applications,bulk email maximally,bulk email blasting,enlargement email broadcasting,enlargement email race,bulk email campaigns,bulk email client,enlargement email sorority,bulk email new zealand
bulk email the deity,enlargement email database,magnitude email transportation,enlargement email direct,volume email tell sender,volume email allocation,mass email extractor,bulk email fingerprint,largeness email forum,largeness email freeware,size email thick,volume email generator,size email guidelines,volume email hosting,volume email internet marketing,volume email liber veritatis
volume [url=http://www.inbox-mailer.com]email listings[/url],magnitude email lists,enlargement email dispatch,largeness email mailer,majority email mailing,[url=http://www.inbox-mailer.com]bulk email mailing[/url] laundry list,volume email management,size email director,magnitude email marketing,enlargement email marketing action,mass email marketing checking,enlargement email marketing services,majority email marketing software,magnitude email newsletter,mass email newsletters
majority email opt in,bulk email program,volume email programs

We are giving 95% + Inbox Guranteed No one-liner can beat out us !! Thanks a allotment !

Anonymous said...

Hi all,

it seems pretty cool here

i have some very strong opinions

i hope i get to know you all soon!

[IMG]http://www.trueimagehost.com/1/m/47xFMd46ie7B/blank.gif[/IMG]

Anonymous said...

Shalom

This forum rocks.. I really liked it...

Greets everyone!

[URL=http://www.vpnmaster.com][IMG]http://openvpn.net/archive/openvpn-users/2005-05/pngd55nFojmJX.png[/IMG][/URL]

Anonymous said...

hey all

I just wanted to introduce myself to everyone!

Can't wait to start some good conversations!

-Marshall

Thanks again!

Anonymous said...

[url=http://astore.amazon.com/colemanroadtripgrill08-20] coleman roadtrip grill
http://astore.amazon.com/colemanroadtripgrill08-20

viagra online said...

Hello friend amazing and very interesting blog about PHP - Get a range of dates between two dates

Anonymous said...

check out the new free [url=http://www.casinolasvegass.com]online casino games[/url] at the all new www.casinolasvegass.com, the most trusted [url=http://www.casinolasvegass.com]online casinos[/url] on the web! enjoy our [url=http://www.casinolasvegass.com/download.html]free casino software download[/url] and win money.
you can also check other [url=http://sites.google.com/site/onlinecasinogames2010/]online casinos[/url] and [url=http://www.bayareacorkboard.com/]poker room[/url] at this [url=http://www.buy-cheap-computers.info/]casino[/url] sites with 100's of [url=http://www.place-a-bet.net/]free casino games[/url]. for new gamblers you can visit this [url=http://www.2010-world-cup.info]online casino[/url].

Anonymous said...

kredyt pozyczka kredyt bez bik podatek dochodowy
http://studencki-kredyt.pl/kredytu/mapa.html http://studencki-kredyt.pl/kredytu/mapa.html http://studencki-kredyt.pl/kredytw/ http://studencki-kredyt.pl/kredytz/mapa.html http://studencki-kredyt.pl/kredyts/ http://studencki-kredyt.pl/kredytt/mapa.html http://studencki-kredyt.pl/akcje/mapa.html http://studencki-kredyt.pl/inwestycje/mapa.html http://studencki-kredyt.pl/karta-kredytowa/mapa.html http://studencki-kredyt.pl/lokata/mapa.html http://studencki-kredyt.pl/notowania/mapa.html http://studencki-kredyt.pl/oprocentowanie/mapa.html http://studencki-kredyt.pl/pozyczka/mapa.html http://kredyty-studenckie.unl.pl/emerytura/mapa.html http://kredyty-studenckie.unl.pl/leasing/mapa.html http://kredyty-studenckie.unl.pl/prywatyzacja/mapa.html http://kredyty-studenckie.unl.pl/renta/mapa.html http://kredyty-studenckie.unl.pl/waluty/mapa.html

Anonymous said...

if you guys important to conjecture [url=http://www.generic4you.com]viagra[/url] online you can do it at www.generic4you.com, the most trusted viagra drugstore pro generic drugs.
you can tumescence into uncover drugs like [url=http://www.generic4you.com/Sildenafil_Citrate_Viagra-p2.html]viagra[/url], [url=http://www.generic4you.com/Tadalafil-p1.html]cialis[/url], [url=http://www.generic4you.com/VardenafilLevitra-p3.html]levitra[/url] and more at www.rxpillsmd.net, the top-priority [url=http://www.rxpillsmd.net]viagra[/url] informant on the web. well another great [url=http://www.i-buy-viagra.com]viagra[/url] pharmacy you can find at www.i-buy-viagra.com

Anonymous said...

check [url=http://www.eroticwebcams.net]www.EroticWebCams.net[/url] if you want to enjoy the best erotic webcams.

Anonymous said...

Instantly translate entire web pages, blogs or documents in a single click using our miraculous online translation software. Our incredible translator tool supports 75 languages including English, Spanish, French, Korean, Japanese, Hebrew (Yiddish), Swedish, Dutch, German, Italian, Croation, Chinese (Simplified), Chinese (Traditional), Portugese, Russian, Serbian, Turkish and more! It also comes loaded with a leading dictionary, spelling and definition package. Use our simple and intuitive translation software to translate words, webpages or document formats such as Word, PDF and text. Download our amazing translation software for free and start translating now!

You can download it here:
[URL=http://fishbabel.notlong.com]Babel Fish[/URL]

citrate sildenafil said...

I really like this write! I enjoy it so much! thanks for give me a good reading moment!

Anonymous said...

[url=http://grou.ps/reductil] Buy reductil online
http://grou.ps/reductil
Buy reductil online

Anonymous said...

Infatuation casinos? scrutinize this advanced [url=http://www.realcazinoz.com]online casino[/url] advisor and play online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also into our additional [url=http://freecasinogames2010.webs.com]casino[/url] guide at http://freecasinogames2010.webs.com and be heir to in genuine change !
another new [url=http://www.ttittancasino.com]casino spiele[/url] bracket is www.ttittancasino.com , in lieu of of german gamblers, arrange manumitted online casino bonus.

Anonymous said...

Greets dude!

It is my first time here. I just wanted to say hi!

Anonymous said...

Predilection casinos? scrutinization this latest [url=http://www.realcazinoz.com]casino[/url] games. advisor and wing it reduce online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also into our up to date [url=http://freecasinogames2010.webs.com]casino[/url] shun at http://freecasinogames2010.webs.com and replace in true compressed currency !
another lone [url=http://www.ttittancasino.com]casino[/url] spiele position is www.ttittancasino.com , because german gamblers, slip in loose online casino bonus.

Anonymous said...

new guys! end the latest untrammelled [url=http://www.casinolasvegass.com]casino[/url] games like roulette and slots !validate into public notice like a sparkle the all unmapped unburden [url=http://www.casinolasvegass.com]online casino[/url] games at the all late www.casinolasvegass.com, the most trusted [url=http://www.casinolasvegass.com]online casinos[/url] on the entanglement! dig our [url=http://www.casinolasvegass.com/download.html]free casino software download[/url] and be victorious in money.
you can also discontinuation other [url=http://sites.google.com/site/onlinecasinogames2010/]online casinos bonus[/url] . check out this new [url=http://www.place-a-bet.net/]online casino[/url].

Anonymous said...

well guys! check the latest unregulated rid of [url=http://www.casinolasvegass.com]casino[/url] games like roulette and slots !after outlet the all unexplored free [url=http://www.casinolasvegass.com]online casino[/url] games at the all new www.casinolasvegass.com, the most trusted [url=http://www.casinolasvegass.com]online casinos[/url] on the web! profit from our [url=http://www.casinolasvegass.com/download.html]free casino software download[/url] and gain a victory in money.
you can also control other [url=http://sites.google.com/site/onlinecasinogames2010/]online casinos bonus[/url] . check out this new [url=http://www.place-a-bet.net/]online casino[/url].

Anonymous said...

BUY VIAGRA

BUY CIALIS

BUY LEVITRA

CANADIAN PHARMACY

BUY DRUGS ONLINE

GENERIC VIAGRA

OVERSEAS PHARMACY

CHEAP VIAGRA

Anonymous said...

Greetings. I like your article. This is a nice site and I wanted to post a note to let you know. good job!

Anonymous said...

lost your money at the [url=http://www.realcazinoz.com]casino[/url] ?over 21 and looking where to [url=http://www.generic4you.com]buy viagra online[/url]? or even how to buy [url=http://www.avi.vg]adult toys[/url]? well you can try this websites and [url=http://www.medical-250.biz]buy viagra[/url]. [url=http://www.generic4you.com]sildenafil[/url] and [url=http://www.generic4you.com]generic viagra[/url] online. you can also buy [url=http://www.generik4u.com]viagra[/url] online.
so for [url=http://www.avi.vg]sex toys[/url] and [url=http://www.ewgpresents.com]viagra online[/url] check us ! for great [url=http://www.cahv.org]viagra[/url] deals check us now!

Anonymous said...

lost your money at the [url=http://www.realcazinoz.com]casino[/url] ?over 21 and looking where to [url=http://www.generic4you.com]buy viagra online[/url]? or even how to buy [url=http://www.avi.vg]adult toys[/url]? well you can try this websites and [url=http://www.medical-250.biz]buy viagra[/url]. [url=http://www.generic4you.com]sildenafil[/url] and [url=http://www.generic4you.com]generic viagra[/url] online. you can also buy [url=http://www.generik4u.com]viagra[/url] online.
so for [url=http://www.avi.vg]sex toys[/url] and [url=http://www.ewgpresents.com]viagra online[/url] check us ! for great [url=http://www.cahv.org]viagra[/url] deals check us now!

Anonymous said...

Playing bingo needs more than luck or skills and techniques, contrary to what most believe. Bingo, just like any game of chance, comes with rules and regulations that players should observe. Being a player comes with responsibilities and etiquette.

Winning the Game

The moment you figured out you won, you must immediately yell BINGO, and it should be loud enough for the floor walker to hear. The pot money shall be given to the winner once their winning card is confirmed. Well, in winning or once you know you just won, the most important thing is that you shout the winning word BEFORE the time elapses. If the game proceeds and the next number is mentioned and you failed to shout "Bingo", your winning card is disqualified. Therefore, this is the rule you must know.

There may be cases when there are two winners, and in this case the pot money shall be divided equally among the winners. Supposing there are two winning cards, the two winners will share half the prize money.

Bingo Game Rules

Bingo rules are basically the same no matter in which Online Bingo hall you play. But still it's good if you know these rules by heart. If it is your first try, then ask for handouts and inquire from pros regarding the game rules. Nonetheless, the ideal thing to do if you have questions is to ask the floor walker and not the person seated beside you. You should clarify things and doubts before the game starts because asking too many questions as the game proceeds could well distract you. This guideline also applies to those who are newcomers at casinos, those who play roulette for the first time.

Bingo halls demand an age limit of 18 years old. If you are below this age, you are prohibited to play. Some bingo houses ban alcohol inside, so players aren't supposed to take liquor nor drink it inside the venue. Smoking may also be restricted inside the venue, as there are designated smoking sections.

Take note that some Bingo houses don't allow food but some do, so it basically depends on the venue. Policies vary among different venues. For instance, some bingo halls allow reservation of cards, while others don't allow it. Some allow people to leave the venue in the middle of the game, others forbid it. But there are general policies observed in all bingo houses, such as disqualification of tampered bingo cards. There is no way you can get away with a tampered card because the walkers are adept at identifying authentic cards from tampered ones. You could be banned from a bingo establishment if proven liable of tampering a card. Hence, you should play honestly.

Interestingly, some venues offer special bingo games for kids although some halls don't allow players to have companions while playing. Suppose you bring kids with you, don't let them run around the venue and bother other gamers. They should behave well whilst you play and the game proceeds. Play quietly and don't recite the numbers you desperately want to come off because you'll be much of a disturbance if you do. Decorous playing is expectant of all players, even those who play roulette at casinos. Also, having a valid identification is important because you don't know you might win and need to present credentials.

More Online Bingo Info at Bingo Snooper Visit Now http://www.bingosnooper.com

Anonymous said...

http://friends.rambler.ru/boynombvicoup@rambler.ru http://friends.rambler.ru/alrefjuncro@rambler.ru
japanese hot teen trixie teen hot

Anonymous said...

good morning I am in search for people to come to my Guild Caesary come take a look. and join my group please! hawks raiders at http://www.lekool.com. Been playing Caesary game for 6 weeks. Caesary has been the best browser game in a long time!

[url=http://caesary.lekool.com]Caesary[/url]
[url=http://caesary.lekool.com]browser based[/url]
[url=http://video.lekool.com]Game Videos[/url]
[url=http://dc.lekool.com]Game Videos[/url]

Anonymous said...

Hey i am suuper boy

Anonymous said...

http://mordijiew.us

Anonymous said...

Identical does not habitually on on the internet as mannerly articles as yours is. I cant hang about to look over some more of your works. [url=http://szkoleniaforex.info/]forex[/url]

Anonymous said...

Амфетамины и Спиды. Синтез амфетамина в домашних условиях. Изображение изготовления сульфата амфетамина.
Продажа 10% раствор пропена 50г - 3000р
http://speed.kablog.com

Anonymous said...

Hi everyone! I'm from London but am living in Berlin at the moment.
Gotta like this site!


____________________________________
[url=http://stephetteh.wordpress.com/]Barrater is my life[/url]

Anonymous said...

Hi Everybody! I'm originally from London but am living in Berlin at the moment.
Gotta love this place!


____________________________________
[url=http://stephetteh.wordpress.com/]Barrater is my life[/url]

buy generic cialis online said...

Well worth to read this article, thanks for sharing this information. With this article you offered me got a chance to know about this, anyway i say Great Article! and waiting for you next article about this interesting subject.

Anonymous said...

All of the strong painkillers have similar side effects. The most common are constipation & sickness. That's what i want to say here.

Anonymous said...

I would like to thank You for being the member of this website. Please allow me to have the possibility to show my satisfaction with Host Gator web hosting. They have professional and instant support and they also offer many [url=http://www.aboutus.org/HostingHostGatorCoupons.com ]Hostgator coupon codes[/url].

I like hostgator hosting, you will too.

http://pranjic.com.hr/smf/index.php?action=profile;u=13283

Dave said...

These kind of post are always inspiring and I prefer to read quality content so I happy to find many good point here in the post, writing is simply great, thank you for the post penis enlargement penis enlargement pills VigRX Plus