pg_meta_data

PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
pg_meta_data - Get meta data for table
Manual
Code Examples

pg_meta_data( PgSql\Connection$connection, string$table_name, [bool$extended = false] ): array|false

pg_meta_data returns table definition for table_name as an array.

Parameters

connection

An PgSql\Connection instance.

table_name

The name of the table.

extended

Flag for returning extended meta data. Default to false.

Return Values

An array of the table definition, or false on failure.

Changelog

Version Description
8.1.0 The connection parameter expects an PgSql\Connection instance now; previously, a resource was expected.

Related Functions

Example of pg_meta_data

Show all examples for pg_meta_data

PHP Version:


Function pg_meta_data:

PostgreSQL Functions

Most used PHP functions