msql_close

(PHP 3, PHP 4, PHP 5)

msql_close -- Close mSQL connection

說明

bool msql_close ( [resource link_identifier] )

msql_close() closes the non-persistent connection to the mSQL server that's associated with the specified link identifier.

Using msql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution. See also freeing resources.

參數

link_identifier

mSQL 的連線標識符。若果沒有指定,預設使用最後被 msql_connect() 開啟的連線。若果沒有找到該連線,函數會嘗試通過呼叫 msql_connect() 建立連線並使用它。

返回值

若果成功則返回 TRUE,失敗則返回 FALSE