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.
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
We converting the in boolean datatype in FALSE:
Every other value is considered TRUE.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With