You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far, we can use the key() and iteration() functions when running within loops but sometimes an index() function (return the current iteration number) would also be useful in case we would like to make something happen when the first/specified/last iteration occurs or add the iteration number in a class.
Especially when working with associative arrays or objects it's necessary to be able to retrieve the current index of the iteration.
Would that be hard to achieve?
The text was updated successfully, but these errors were encountered:
SolidSnakeGr
changed the title
[FEATURE REQUEST] Iteration index() within loops
[Feature Request] Iteration index() within loops
Jul 17, 2018
I've just come accross this issue..
So far, we can use the key() and iteration() functions when running within loops but sometimes an index() function (return the current iteration number) would also be useful in case we would like to make something happen when the first/specified/last iteration occurs or add the iteration number in a class.
Especially when working with associative arrays or objects it's necessary to be able to retrieve the current index of the iteration.
Would that be hard to achieve?
The text was updated successfully, but these errors were encountered: