Thursday, January 13, 2011

How to loop A-Z in php

Just like counting numbers :)

$letter = "A";
for($i = 1; $i<= 26; $i++)
{
  $letter++;
  echo $letter;
}