update : 2015.11.03
php.shukuma.com

검색:
 
 
Closes a previously opened database connection

mysqli::close

mysqli_close

(PHP 5)

mysqli::close -- mysqli_closeCloses a previously opened database connection

설명

객체 기반 형식

bool mysqli::close ( void )

절차식 형식

bool mysqli_close ( mysqli $link )

Closes a previously opened database connection.

Open non-persistent MySQL connections and result sets are automatically destroyed when a PHP script finishes its execution. So, while explicitly closing open connections and freeing result sets is optional, doing so is recommended. This will immediately return resources to PHP and MySQL, which can improve performance. For related information, see freeing resources

인수

link

순차 형식 전용: mysqli_connect()mysqli_init()가 반환한 연결 식별자.

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.

예제

See mysqli_connect().

주의

Note:

mysqli_close() will not close persistent connections. For additional details, see the manual page on persistent connections.

참고