PHP - array_map used for array looping?
I used this to process a directory of files with certain extensions. Looking at examples it seems this may also be used to parse arrays to a callback function.
I don't fully understand this function.
Could this be used instead of a for or foreach loop?
Is it faster or slower? anyone know?
Just seemed pretty handy for certain situations but beyond what I am using it for in one specific instance, I doubt I will ever use it.
What are benefits of this function? I guess I was wondering if it is viable option as replacement for other loops, I understand it is only for arrays.
Thanks,
- T
"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."