1 # string pq\Converter::convertToString(mixed $value[, int $type = NULL])
3 Convert a value to a string for use in a query.
8 The PHP value which should be converted to a string.
9 * Optional int $type = NULL
10 The type the converter should handle. Irrelevant for singly-type converters.
14 * string, a textual represenation of the value accepted by the PostgreSQL server.
20 abstract class Example implements pq\Converter {
21 function convertToString($uuid, $type = NULL) {
22 return uuid_unparse($uuid);