← All built-ins / mysql_close()

mysql_close()

mysql_close(...$args): bool

Parameters

NameTypeDescription
$connresourceconnection 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.

See also

mysql_connect()