bertrc false do not return 0, only true return 1
Instead of just echo
-ing the result, use var_dump($value)
, instead. (echo
will type-cast the Boolean value to a string value, which in this case casts true
to "1" and false
to "".)
$ php -a
Interactive shell
php > $foo = true;
php > $bar = false;
php > echo $foo;
1
php > var_dump($foo);
bool(true)
php > echo $bar;
php > var_dump($bar);
bool(false))