Posts tagged “spl

For a recent project of mine, I needed to create a type-safe collection of objects in PHP. However, normal PHP arrays don’t support this kind of behavior. I could create a class to do the job, but I’ll have to do a little work to make it function like a real array.

CONTINUE READING