Time and time again, I come across code that contains a variety of array-handling functions that too often duplicate the work that the PHP core team has done to develop built-in array functions. Since the built-in functions are inherently faster, trying to reimplement them in PHP will inevitably be a performance problem.
Here are five of my favorite array functions, along with their signatures and what they do.
(more…)
Wednesday, October 21st, 2009 @ 1:00 am |
Comment (22) |
Categories: General PHP, Technology, Best Practices
Tags: array, internals, PHP