Answers for "parse boolean to string php"

PHP
0

boolean to string php

echo json_encode(true);  // string "true"

echo json_encode(false); // string "false"

// null !== false
echo json_encode(null);  // string "null"
Posted by: Guest on November-24-2021
0

php boolean to string

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

Browse Popular Code Answers by Language