close() function used for php code example Example: close mysql connection in php Click to copy// OOP $conn->close(); //Procedural mysqli_close($conn);