Why did the computer programmer always confuse Halloween and Christmas?

Because 31 Oct == 25 Dec

For those who didn’t get that, or to explain it to your non-tech friends, have a look at decoct()

echo decoct( 25 ); // 31
echo octdec( 31 ); // 25

Or, here it is in plain English. The base 8 (octal) number “31″ is a representation of the base 10 (decimal - the one you’re used to) number “25″. Halloween is on October 31st and Christmas is on December 25th.

Get it? Oh, I know it’s not all that funny. Clever, though.

Wait! Wait! Bonus Joke!

OK. This one’s even worse.

What is a ghost’s favorite data type?

.

.

A boolean!

Ha ha haaa! (oh, boy)