Q:

Way to get all alphabetic chars in an array in PHP?

Is there a way to get all alphabetic chars (A-Z) in an array in PHP so I can loop through them and display them?

A:

$alphas = range('A', 'Z');

A:

To get both upper and lower case merge the two ranges:
$alphas = array_merge(range('A', 'Z'), range('a', 'z'));

A:

$alphabet = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');

