(PHP 8 >= 8.4.0)
Pdo\Pgsql::copyToFile — Copy data from table into file
public Pdo\Pgsql::copyToFile( string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null ): bool
Copies data from table into file specified by filename using separator as fields delimiter and fields list.
tableNamefilenameseparatorrows array. nullAsNULL values. fields
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/pdo-pgsql.copytofile.php