I'm not asking you to code it for me or anything, snippets of code or just pointing me in the right direction will help me out a lot.
This is what I'm basically trying to do, you have the word "abcdefg"
I want it to split up the string into an array (or whatever works best?) , then assign a value based on what letter is stored into the array. (based on the alphabet , a = 1 , b = 2 , c = 3 , z = 26)
so abcdefg will turn into something like
$foo("a" => 1, "b" =>2, "c" => 3, etc..);
but obviously if "abcdefg" was "zaj", the array would be "z" => 26 , "a" => 1 , "j" => 10
Basically, convert a string of letters into their alphabetical num value sorta?