In PHP the implementation of collections is quite popular now. This makes map and reduce a breeze. It also makes it more readable.
However I am curious to know why not many people know about and have implemented a Duff’s Device.
This is probably the most optimized way of iteration over items. My take is because it is less readable or understandable.
However only use it where optimizations are needed.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.