Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP FILTER_VALIDATE_BOOLEANT Filter

PHP FILTER_VALIDATE_BOOLEAN Filter


PHP Filter Reference Manual Complete PHP Filter Reference Manual


Definition and Usage

The FILTER_VALIDATE_BOOLEAN filter validates a value as a boolean option.

Possible return values:


Example

The output of the code is shown below:

bool(true)


PHP Filter Reference Manual Complete PHP Filter Reference Manual