← All built-ins / mysql_close()
mysql_close()
mysql_close(...$args): bool
Parameters
| Name | Type | Description |
|---|---|---|
| $conn | resource | connection handle |
Return value
true when closed.
Example
echo "mysql_close($c); // release the connection";
mysql_close($c); // release the connection
This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.