PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How can I create an array of the letters of the alphabet?


This is done using the range operator which will create an array of the letters:

<?php
$letters 
range(a,z);
?>


This will give you an array from A to Z.



Comment on this Question and Answer >>>

ASK A QUESTION

More arrays PHP Questions

How do I remove an element from an array without changing the index values for the rest of the array?

How do I add to the beginning of an array and find the number of elements in it?

in .$array->description doesn't work "description" is suppose to stay black and turns colored and is ignored Why?

How do you remove duplicate values from an array?

How do we sort an array of names taken from a text file, displaying only unique names?



Custom Search