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.