Boolean data type:-
Boolean variable represents the true’s value in php. True returns a value “1” and false will not return any value.
Is_bool:-this function cheek weather the input variable is Boolean are not.
To convert a data type value into Boolean data type
<?php
$x=false
Echo ($x);
?>
Out put : not display any value
<?php
$x=false;
Echo is_bool($x);
?>
Output: 1
Boolean variable represents the true’s value in php. True returns a value “1” and false will not return any value.
Is_bool:-this function cheek weather the input variable is Boolean are not.
To convert a data type value into Boolean data type
<?php
$x=false
Echo ($x);
?>
Out put : not display any value
<?php
$x=false;
Echo is_bool($x);
?>
Output: 1