This isn't a direct answer to the question, but here's an example demonstrating that pg_*() functions do in fact return the postgres boolean true value as the PHP string 't':
[example]$ cat scratch.php
array(1) {
["true"]=>
string(1) "t"
}
}
bool(true)
[example]$