Questions tagged [spl]
Code Focused around the use of the Standard PHP Library
4 questions
1
vote
1
answer
479
views
Applying multiple php FilterIterator instances in a cascading fashion
I wrote an implementation of php FilterIterator objects that allows me to apply them in a "cascade" way, so I can finally obtain an array of objects which is the ...
4
votes
1
answer
2k
views
Simple MVC in PHP
I have a very simple PHP MVC library for my auto-didactic pedagogical purposes. I'm having a little trouble figuring out how to add in the observer patterns as show in this UML diagram from Wikipedia.
...
4
votes
2
answers
94
views
Using `exec()` in an autoloader
After reviewing autoloader functions on the site, I didn't see anything like this, and I was wonder what may be wrong with this?
...
8
votes
1
answer
566
views
MySQLi_Recordset: blending SPL and Statement/Query results
I've made a SPL-based class named "Recordset" that wraps both MySQLi_STMT and MySQLi_Result objects and allows treating either as a 3-dimensional array. It requires PHP5.3+.
I'm pretty bummed about ...