pg_escape_string

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Escape a string for query
<?php pg_escape_string(PgSql\Connection $connection = ?, string $data): string