解析PHP中的current(附代码实例)我们在学习PHP中foreach这个函数时,通常很难理解foreach的运行原理,其实可以运用current()函数进行模拟,这样我们可能可以更加快速地理解foreach的遍历原理。首先我们先看一下语法:current ($array) 1