I\'m pretty sure this is a simple fundamental flaw in my newb PHP knowledge, but I was surprised when the following happened:
Yes, true is equal (==) to a non-empty string. Not identical (===) though.
true
==
===
I suggest you peruse the type comparison table.