Ten Security Checks for PHP, Part 1
Subject:   Nicer code
Date:   2009-01-23 20:03:51
From:   NinjaTech
Response to: Nicer code

Your code may seem better, because it looks a bit cleaner, however his is quicker than yours, because it uses buckets and doesn't have to search the array to find every match.