(PHP 4 >= 4.3.0, PHP 5, PHP 7)
Insert array into table
mixed pg_insert ( resource $connection, string $table_name, array $assoc_array [, int $options = PGSQL_DML_EXEC ] )
pg_insert() inserts the values of assoc_array into the table specified by table_name. If options is specified, pg_convert() is applied to assoc_array with the specified options.
Parameters:
connection