php convert to boolean
// (PHP 5 >= 5.5.0, PHP 7)
// boolval — Get the boolean value of a variable
boolval ( mixed $var ) : bool
// Returns the boolean value of var.
php convert to boolean
// (PHP 5 >= 5.5.0, PHP 7)
// boolval — Get the boolean value of a variable
boolval ( mixed $var ) : bool
// Returns the boolean value of var.
php boolean
Booleans can be one of two constants:
true
false
These values are not case sensitive, therefore true is the same as TRUE
booleans are also often used in control structures, either directly or as
a result of an operation. For example:
if ($waterDrankToday > 3.7) {
echo "Good work staying hydrated!";
if ($havingABadDay)
hug();
}
else
echo "You should drink more water";
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us