Jump to content

mktime help *solved*


digitalgod

Recommended Posts

hey guys,

trying to build an array that cpntains all the days of the week starting by today.

I have this so far but for some reason it shows the date starting wednesday and not thursday ( I already tried doing echo date("l"); and it prints Thursday)

[code=php:0]
$days = array();
for ($i=1;$i<=7;$i++) {
array_push($days,date("l", mktime(0,0,0,0,+$i,0)));
}
[/code]
Link to comment
https://forums.phpfreaks.com/topic/17194-mktime-help-solved/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.