mysqli - Do I really need to do $result->close(); & $mysqli->close();?

后端 未结 4 472
逝去的感伤
逝去的感伤 2020-12-13 06:44

Just started using mysqli. If I\'m working with small data sets on small websites (traffic-wise), do I really need to use these all the time?

$result->clo         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 07:05

    It is a good practice to release resource early when it is no more needed, this may avoid resource peek out when there are more number of concurrent user accessing the same page

提交回复
热议问题