What is the recommended method to close a MySQL connection in PHP to prevent exceeding the connection limit?

When working with MySQL connections in PHP, it is important to properly close the connection after you are done using it to prevent exceeding the connection limit set by the MySQL server. This can be achieved by using the `mysqli_close()` function to explicitly close the connection.

// Open a connection to the MySQL database
$connection = mysqli_connect("localhost", "username", "password", "database");

// Perform database operations here

// Close the connection to prevent exceeding the connection limit
mysqli_close($connection);