I'm trying to create a 6 digit number from a string of letters before a # sign.
For instance I'd like to take "seaweed#" and take the 6 last letters before the "#" sign and convert them to numbers based on each letters position in the alphabet assuming a=1, b=2, c=3 etc.
I've been looking through PHP's manual of string functions but logic is failing me this morning. Most likely because I haven't had my coffee yet. Some help would be appreciated.