cleaner alphabet array in php -


i'm creating array of alphabet letters.. it's cluttering code , doesn't readability. php have cleaner way or function returns alphabet in array?

array ('a','b','c','d','e','f','g'..........................................); 

you can use range function used create array containing range of elements:

$alpha = range('a', 'z'); 

see it


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -