这在foreach和array_walk()之间有更好的性能 [英] which is better performance among foreach and array_walk()

查看:195
本文介绍了这在foreach和array_walk()之间有更好的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在数组更新中比较好,适用于每个数组或array_walk();

which is better in array updating ,is for each or array_walk();

推荐答案

看看这个
http://www.codingforums.com/archive/index.php/t-147062.html [^ ]

但是,为什么不尝试自己编写测试呢?
Have a look at this
http://www.codingforums.com/archive/index.php/t-147062.html[^]

But why not try to write a test yourself?


这篇关于这在foreach和array_walk()之间有更好的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆