P.S.F.Romesh P.S.F.Romesh - 4 months ago 32
PHP Question

Value 0 and 1 is equal to false and true in php

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.