Value 0 and 1 is equal to false and true in php
php
Solution
A boolean TRUE value is converted to the string "1". Boolean FALSE is converted to "" (the empty string). This allows conversion back and forth between boolean and string values.
https://www.php.net/manual/en/language.types.string.php#language.types.string.casting
Problem
some time we use 0 value or 1 value for php, instead of 0 and 1 value, can we use True/False method in php.