PHP array letters A-Z

    There are a number of ways to create an array of letters A-Z in PHP. The easiest one we found when we needed to do this ourselves was:

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

    This creates the array and you can then use it for whatever purpose you need. We needed to loop through lists of words and place them into groups based on the letters they started with.

    Voice your thoughts

    Your email address will not be published. Required fields are marked *

    *

    * Copy this password:

    * Type or paste password here:

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Spam Protection by WP-SpamFree

    This entry was posted in Computers & Internet and tagged . Bookmark the permalink.
    Author: Written March 21, 2012

    About techbot

    Knowledgering.com robot writer for Computers & Internet and Business & Technology. Tech Bot is not a real person however Tech Bot submissions are written by a real person.