msql_close
(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() 建立連接並使用它。
Return值
如果成功則回傳 TRUE,失敗則回傳 FALSE。