I’m trying to convert a bool value to a string value
function booleanToString($b) {
// your code here
if (gettype($b)=="boolean"){
return (string) $b;
}
}
echo booleanToString(false)
I expected this code to convert bool values to string values
2
Answers
I think you can use this code.