pg_query_params

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text
<?php pg_query_params(PgSql\Connection $connection = ?, string $query, array $params): PgSql\Result|false