pg_meta_data( resource $connection , string $table_name [, bool $extended ] ): array
$tabDpt = pg_meta_data($ptrDB, 'departement', false);
echo '<ul>';
foreach ($tabDpt as $key => $val) {
echo "<li><b>$key</b> => (";
foreach ($val as $k => $v)
echo $k.'='.$v.',';
echo ')</li>';
}
echo '</ul><br />';
$tabReg = pg_meta_data($ptrDB, 'region', true);
echo '<ul>';
foreach ($tabReg as $key => $val) {
echo "<li><b>$key</b> => (";
foreach ($val as $k => $v)
echo $k.'='.$v.',';
echo ')<li>';
}
echo '</ul>';