Answers for "php get string value of boolean"

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
1

php get bool from string

filter_var('true', FILTER_VALIDATE_BOOLEAN);
Posted by: Guest on July-07-2021

Browse Popular Code Answers by Language