Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<PDO_PGSQL DSNPDO::pgsqlCopyFromFile>
^PostgreSQL PDO DriverLast updated: Mon, 26 Oct 2026

PDO::pgsqlCopyFromArray

(PHP 5 >= 5.3.3, PHP 7, PHP 8)

PDO::pgsqlCopyFromArray — Alias of Pdo\Pgsql::copyFromArray()

Warning

This function has been DEPRECATED as of PHP 8.5.0. Relying on this function is highly discouraged.

Description

#[\Deprecated]
public function PDO::pgsqlCopyFromArray(
    string $tableName,
    array|Traversable $rows,
    string $separator = "\t",
    string $nullAs = "\\\\N",
    ?string $fields = null
): bool

This method is an alias of: Pdo\Pgsql::copyFromArray().

Changelog

Version Description
8.5.0 The rows parameter now also accepts a Traversable; previously only an array was accepted.

<PDO_PGSQL DSNPDO::pgsqlCopyFromFile>
^PostgreSQL PDO DriverLast updated: Mon, 26 Oct 2026