获取当前阵列位置的指针,而这样做的foreach $对象 - > result_array()
你好,考虑这个,的情况下。
foreach($object->result_array() as $rs)
{
//how do i display the current array element index that is the iteration index.
//i want to call a function when the iterator is in the last-1 position.
// and more specifically i want to use it in this place and not any other for(;;) loops.
// and even it is an example with other loops then that is fine.
}
应该有一个选项,或通过使用电流()函数。 我试过,但仍然我必须做一些分析...相反调试和跟踪数组元素我张贴此线程。
以上都是有可能与一个循环做到这一点?