string(1) "5"
string(4) "5.34"
string(5) "hello"
string(1) "1"
string(0) ""
 

请注意,当将布尔值转换为字符串时,其值为 "1",而将 NULL 转换为字符串时,它会被转换为空字符串 ""。