P.S.F.Romesh P.S.F.Romesh - 1 month ago 12
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

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.

http://us3.php.net/manual/en/language.types.string.php#language.types.string.casting