pg_put_line()
pg_put_line - Send a NULL-terminated string to PostgreSQL backend
Syntax
bool pg_put_line (
resource $connection,
string $data)
Arguments
- connection - PostgreSQL database connection resource. When connection is not present, the default connection is used. The default connection is the last connection made by pg_connect() or pg_pconnect().
- data - A line of text to be sent directly to the PostgreSQL backend. A NULLterminator is added automatically.
Description
pg_put_line() sends a NULL-terminated string to the PostgreSQL backend server. This is needed in conjunction with PostgreSQL's COPY FROMcommand.
Version
PHP 4.0.3, 5
Return value
Returns TRUE on success or FALSE on failure.