pg_connection_reset

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

pg_connection_reset �������ӣ��ٴ����ӣ�

˵��

pg_connection_reset ( resource $connection ) : bool

pg_connection_reset() ����һ�����ӣ����ڴ���ָ���

����

connection

PostgreSQL database connection resource.

����ֵ

�ɹ�ʱ���� TRUE�� ������ʧ��ʱ���� FALSE��

����

Example #1 pg_connection_reset() ����

<?php
  $dbconn 
pg_connect("dbname=publisher") or die("Could not connect");
  
$dbconn2 pg_connection_reset($dbconn);
  if (
$dbconn2) {
      echo 
"reset successful\n";
  } else {
      echo 
"reset failed\n";
  }
?>

�μ�