MySQLi query results: Best approach, do you close, free, both?

后端 未结 5 1832
小蘑菇
小蘑菇 2021-01-30 07:04

I have some questions about using MySQLi, queries, and related memory management. The code here is just to clarify my questions, so don\'t dump on it for error checking, etc. I

5条回答
  •  佛祖请我去吃肉
    2021-01-30 07:30

    The general PHP way is not to close any opened resource. Everything will be automatically closed at the script end. The only case where you have to take care of manual close is if you have long heavy code to run, which is not very common for PHP.

提交回复
热议问题