mysql + PHP-use or not use mysqli close()

I have now noticed that I am not using the function mysqli_close() indicated on the website PHP.NET

I monitor the connections by the workbench client connections and it doesn't get open connections, my doubt is if this way I'm programming without using this function I'm prone to some kind of problem in the Future Type fulnerability, error, or some other kind of problem ?

Author: SneepS NinjA, 2015-09-02

1 answers

Connections that are not persistent close themselves at the end of the script in theory you don't need to close it.

But if your script takes a long time to run, it is interesting that you close the connection after using it so as not to keep it open while the script runs.

This is good also when your server has a limited number of bank connections.

 6
Author: Guerra, 2015-09-02 15:45:19