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 can I reverse sort an array keeping the correlation between the index and value?

I am not interested in the values in the arrays, how can I discard them?

How do I reverse the order of the elements in an array?

How do I add to the end of an array and know how large the array is?

How do I check if a variable is of array type?



Custom Search