title: Converting alphabet letter to alphabet position in PHP
body: <pre><code>$my_alphabet = &quot;T&quot;;
  </code></pre>
  <p>The above character &quot;T&quot; should print the exact position/number of the alphabet. i.e 20</p>
  <p>So, if</p>
  <pre><code>$my_alphabet = &quot;A&quot; ;
  </code></pre>
  <ul>
  <li>I should be able to get the position of the alphabet. i.e. 1</li>
  </ul>
  <p>How can I achieve that.</p>
  <p>I see converting number to alphabet .. but the reverse is not there anywhere.</p>