Skip to main content
Uncategorized

Convert numbers to alphabets PHP

By May 28, 2020No Comments

Sometimes there’s a need to show index based on the alphabet and not based on numbers. PHP had made this as simpler as it can get.

1
2
// $atoz[0] = 'a', $atoz[1] = 'b';
$atoz = range( "a", "z" );

So Simple… Thank you PHP team!