All pastes #563208 Raw Edit

Alex

public text v1 · immutable
·published 2007-06-13 01:27 UTC
rendered paste body
Process for getting top 10 for each field


get uids of all friends
Call MySQL fields for all friends
explode strings by commas
merge arrays
foreach element
    add 1 to the hash of that element(no idea how)
sort desc
chop of everything but top 10
display