localtime() Error

Figured out what was wrong with my date calculation. Take a look at the code below:

$thismonth = (Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Nov,Dec)[(localtime)[4]];

I think even non-programmers would be able to see what’s wrong. I totally missed it.

Ridiculous.

« localtime test
Of Weird Search Terms (1 of 5) »

Comments

Comments are closed.

Find It