Skip to content

PHP code snippet – How to close mysql connection?

// Creating connection
$conn = mysqli_connect("localhost", "username", "password");
// closing connection
mysqli_close($conn);
See also  TypeScript code snippet - How to access contents of an array from another class in java?

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.