Do I really need to do mysql_close()

According to the documentation:

Using mysql_close() isn’t usually necessary, as non-persistent open links are automatically closed at the end of the script’s execution.

Personally, I always like to make sure I pedantically close anything that I open, but it’s not required.

Leave a Comment