PHP boolval() Function

PHP Variable Handling Reference : Return the boolean value of different variables

Definition and Usage

The boolval() function returns the boolean value of a variable.

Syntax

boolval(variable);

Parameter Values

Parameter Description
variable Required. Specifies the variable to check. Must be a scalar type

Technical Details

Return Value: The boolean value of the variable
Return Type: Boolean
PHP Version: 5.5+

❮ PHP Variable Handling Reference