The first method that springs to mind is reading each character and converting it to its ASCII value. Are there any other methods of doing this? I would like to be able to give a php script a string, and have it turn that same string (that may or may not contain numbers or symbols) into the same series of numbers every time.
The first method that springs to mind is reading each character and converting it
Share
So, you’re talking of hashing.
MD5() or (or sha1() as some local paranoids insists) can give you that number. Though a hexdecimal one. I hope it will fit your unclear goals.