Taken from http://www.phpclasses.org/browse/file/11680.html, cred to Miles Kaufmann
Primary LanguagePHP