Javatpoint Logo
Javatpoint Logo

PHP is_bool() function

By using this function, we can check whether the variable is boolean variable or not.

Syntax

Parameters

Parameter Description Is compulsory
var_name The variable being evaluated. compulsory

Returns

It return True if var is boolean, False otherwise.

Example 1

Output:

PHP Variable Handling is_bool() function

Example 2

Output:

PHP Variable Handling is_bool() function
Next Topicis_int() Function




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA