I have a Boolean variable which I want to convert to a string:
$res = true;
I need the converted value to be of the format: \"true\"
\"true\"
Why just don't do like this?:
if ($res) { $converted_res = "true"; } else { $converted_res = "false"; }