Closed Hopkings closed 3 years ago
优化并发性能
https://stackoverflow.com/questions/1891917/does-using-a-function-in-foreach-loop-caches-the-result-or-calls-the-function-e
事实上,php会在第一次执行之后缓存结果,并不会执行多次该方法
优化并发性能