php when do i use close mysql connection code example Example: close mysql connection in php // OOP $conn->close(); //Procedural mysqli_close($conn);