Answers for "if boolean convert to string 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

Code answers related to "if boolean convert to string php"

Browse Popular Code Answers by Language