Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 2
    @user3106858 using ord you might need to use strtolower as well as subtract 96 from the result. Commented Jan 31, 2014 at 7:29
  • I was noticing that also. Thanks again. It's sorta confusing me but ill see what I can do with this. :) Commented Jan 31, 2014 at 7:31
  • @user3106858 the result of ord is in ascii so you need to subtract 96 to make it ordered as in a=1, b=2, etc. Commented Jan 31, 2014 at 7:34
  • A typical fragment of code when doing these kinds of manipulations is something like: ord($letter) - ord('a'). Commented Jan 31, 2014 at 7:36