PHP » GoLang |
login |
register |
about
|
mysql_close(PHP 4, PHP 5) mysql_close — Close MySQL connection Warning
This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:
Description
bool mysql_close
([ resource
$link_identifier = NULL
] )
mysql_close() closes the non-persistent connection to
the MySQL server that's associated with the specified link identifier. If
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 Parameters
Return Values
Returns Examples
Example #1 mysql_close() example
<?php The above example will output: Connected successfully Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|