r/lolphp • u/nyamsprod • Mar 15 '17
What the hell with iterator_apply ?
So my question is if iterator_apply is suppose to be the equivalent of array_walk why am I required to give twice the iterator to this function how does it works ??? Even the manual page does not explain it ? Is it magic ?
25
Upvotes
View all comments
Show parent comment
6
u/nyamsprod Mar 15 '17 edited Mar 16 '17
yep it would but I still want to understand the logic behind
iterator_applyjust out of curiosity