string
pq\Converter::convertToString(mixed
$value, int
$type)Convert a value to a string
for use in a query.
mixed
$value#string
.int
$type#string
, a textual representation of the value accepted by the PostgreSQL server.
<?php
abstract class Example implements pq\Converter {
function convertToString($uuid, $type) {
return uuid_unparse($uuid);
}
}
?>