Quantcast
Channel: Val Petruchek on Web-Development » datetime
Browsing latest articles
Browse All 2 View Live

Get number of days in month with PHP

Problem: get number of days in certain month with PHP, if $m – is a month and $y – is an year. First solution, hacker-style (source): (31 - (($m - 1) % 7 % 2) - ((($m == 2) << !!($y % 4)))) ?>...

View Article



Image may be NSFW.
Clik here to view.

It’s not my birthday, it’s a NEW YEAR, dumbass.

On the January 1st this year I got one very odd email from online store I purchased something from couple of years ago (BTW, it was the worst online shopping experience ever: it worked like a soviet...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images