boolval

PHP 5 >= 5.5.0, PHP 7, PHP 8
boolval - Get the boolean value of a variable
Manual
Code Examples

boolval( mixed$value ): bool

Returns the bool value of value.

Parameters

value

The scalar value being converted to a bool.

Return Values

The bool value of value.

Related Functions

Example of boolval

Show all examples for boolval

PHP Version:


Function boolval:

Variable handling Functions

Most used PHP functions