In PHP, you can close a connection to a MySQL database using the mysqli_close function.

  • TRUE
  • FALSE
  • nan
  • nan
In PHP, you can use the mysqli_close function to close a connection to a MySQL database. This function takes the connection object as a parameter and closes the connection. It's good practice to explicitly close the connection when you're done with it to free up resources, although PHP automatically closes the connection at the end of the script execution. The mysqli_close function is part of the mysqli extension in PHP and should be used to properly close the connection when it's no longer needed.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *