Welcome Guest, Not a member yet? Register   Sign In
a little bug in days_in_month() function !
#5

[eluser]Stefan Hueg[/eluser]
[quote author="InsiteFX" date="1335786780"]It's not a bug, php removes the leading 0's. To php they are just null values.

[/quote]

False. I found the answer.

01, 02, 03, 04 etc. are octal notation.

As there is no 08 or 09 in octal notation, the checks fail.


Messages In This Thread
a little bug in days_in_month() function ! - by El Forum - 04-30-2012, 01:25 AM
a little bug in days_in_month() function ! - by El Forum - 04-30-2012, 04:53 AM
a little bug in days_in_month() function ! - by El Forum - 04-30-2012, 05:41 AM
a little bug in days_in_month() function ! - by El Forum - 04-30-2012, 08:10 AM
a little bug in days_in_month() function ! - by El Forum - 04-30-2012, 09:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB