P.S.F.Romesh P.S.F.Romesh - 1 year ago 67
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.

Answer Source

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.