Tertius Posted March 3, 2009 Share Posted March 3, 2009 anyone can post some links about practical use of SPL. I want to know why it is good to use those SPL iterators instead of just using foreach, things like that.. I think many people want to know too. Quote Link to comment https://forums.phpfreaks.com/topic/147694-practical-use-of-spl/ Share on other sites More sharing options...
Daniel0 Posted March 6, 2009 Share Posted March 6, 2009 Well, in addition to providing you with new functionality, e.g. making you able to perform array specific operations on objects, there are also several benefits in using the SPL. See for instance: http://blueparabola.com/blog/spl-deserves-some-reiteration. That blog post finds that the SPL is actually faster than using traditional array approaches, and in some cases much faster. Quote Link to comment https://forums.phpfreaks.com/topic/147694-practical-use-of-spl/#findComment-777953 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.