php - Loop through an array of data and print an 'incrementing' letter -


I need a loop through an array of data and print an 'incremental' letter for each array value. I know I can do this:

  $ array = array (11, 33, 44, 98, 1, 3, 2, 9, 66, 21, 45); $ Array = array via $ Array = array ('a', 'b', 'c', ...); // array of letters to reach $ I = 0; Exchange currency ($ value as $ value) {$ $ [+ i ++] resonate letters "- $ value"; }  

It seems that there should be a better method than creating an alphabetical array. Any suggestions?

Note - My Loop can never be found through the entire alphabet, so I'm not worried about running out of letters.

  $ letters = category ('a', 'z');  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -