PHP array_diff vs foreach: a battle for speed
1000 runs w/ 1000 data elements in the two arrays (php array diff): 2.7389E-5 seconds 1000 runs w/ 1000 data elements in the two arrays (php foreach): 1.085E-7 seconds php array diff slower by 2.728E-5...
View ArticleTwo variations on Ruby array#flatten
A fun way to waste some time... Write your own version of Ruby's Array#flatten!
View Article