php type int(11) gets converted to bool code example Example: php boolean to string $converted_res = $res ? 'true' : 'false';