md5() in PHP calculates the md5 hash of its string argument and returns it as a hexadecimal string.
EDIT:
are you asking for the reverse of the md5 algorithm?
there arent any available, though some say md5 is weak enough such that analysis may allow one to come up with a string that produces a collision for the given hash.
That's not what you want though.