Recently, while optimizing some code to use less memory, I had to manually compare two arrays rather than using PHP’s built-in functions. Given the sizes of the arrays involved processing was far too slow to be practical. While considering my options (and groaning at the amount of work they would take) it occurred to me that a simple trick might just do the job. Since PHP actually implements...
Flippin’ Fast Array Searches in PHP
F
Recent Comments