Output of the "Converting a GET parameter to a bool type with PHP" PHP snippet
Environment:
- Strangebuzz Snippet VM: 6.4.9
- PHP: 8.4
Code execution output:
string(2) "on"
bool(true)
string(4) "true"
bool(true)
string(1) "1"
bool(true)
string(3) "yes"
bool(true)
int(1)
bool(true)
bool(true)
bool(true)
string(3) "off"
bool(false)
string(5) "false"
bool(false)
string(1) "0"
bool(false)
string(2) "no"
bool(false)
string(3) "foo"
bool(false)
array(0) {
}
bool(false)
int(0)
bool(false)
bool(false)
bool(false)
NULL
bool(false)