Answers for "bool or !! php"

PHP
0

php boolean to string

$converted_res = $res ? 'true' : 'false';
Posted by: Guest on May-21-2020
0

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.
Posted by: Guest on July-07-2020

Browse Popular Code Answers by Language