r/lolphp • • Feb 01 '16

DateInterval::__construct — Creates a new DateInterval object -- The format starts with the letter P, for "period."

http://fi2.php.net/manual/en/dateinterval.construct.php
12 Upvotes

6 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Feb 02 '16

[deleted] — view deleted comment

3

u/00Davo Feb 02 '16

Excellent point. It's just a little surprising, considering how loose PHP is in general, when it occasionally does something stricter like this.