A smiple php function which calculates the euclidean distance score for 2 user preferences.
It can be used for recommendation engines to make recommendations to users based on the similarity in taste.
The function returns a value between 0 and 1. The higher the number (closer to 1), the greater the similarity.
PHP - Should work with pretty much any version.