[ Content | View menu ]

PHP Insanity X

Mark Mzyk May 16, 2008

I’ll keep this insanity short and sweet. In PHP, if you have a define that you forget to actually define, it will default to true, not false. Why is this?  Because in evaluating the define, if PHP cannot find anything else to evaluate it to, it will evaluate it to a string literal, which always […]