In my last entry, I briefly discussed the need for a string object in PHP. In this entry, I will hopefully reinforce those needs for an object oriented approach to collections. I’ve seen some arguments against a need for collections since PHP’s array is so flexible. Still, I’m going to have to keep arguing in favor of an OO approach the the problem!
Read more
PHP Collection Object
PHP String Object
While I enjoy PHP web development quite a bit, I often find myself wishing for a more object-oriented approach in some of the language constructs. Native strings are a good example of PHP’s roots in procedural code. PHP offers a set of str_ functions similar to the C language, but really no options for those of us wanting to use strings more like objects. This article provides a class to change that.
Read more