Converting from a boolean to a string will produce a 1 if the boolean is set to true, or an empty string if false.
<? $bool = true; print "Bool is set to $bool\n"; $bool = false; print "Bool is set to $bool\n"; ?>