Access PHP array element with a function?

后端 未结 5 908
[愿得一人]
[愿得一人] 2020-12-30 04:41

I\'m working on a program that uses PHP\'s internal array pointers to iterate along a multidimensional array. I need to get an element from the current row, and I\'ve been d

5条回答
  •  借酒劲吻你
    2020-12-30 05:14

    Have you tried using one of the iterator classes yet? There might be something in there that does exactly what you want. If not, you can likely get what you want by extending the ArrayObject class.

提交回复
热议问题