Print 'a' to 'z' via for loop


Posted on 16th Feb 2014 07:03 pm by admin

A very simple problem..
How Can I print a to z NOT a to y ?
It is a part of a code where

| $alpha= 'a';for($alpha='a';$alpha!='z';$alpha++){echo $alpha.' ';}

Output: a b c d e f g h i j k l m n o p q r s t u v w x y
$alpha!='z' have the problem..$alpha<='z' creates problem.
please help me about the for loop condition.

No comments posted yet

Your Answer:

Login to answer
84 Like 54 Dislike
Previous forums Next forums
Other forums

problem in pagination when processing with selectbox form
Hi,

I have a search form, with select boxes, if am selecting the value from the form, it work

Load file in PHP
I have 2 files. The first is a PHP generated XML file that's dependent by 2 inputs. The second is a

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

calculator
I can't figure out why this code doesn't work. No error messages. Page loads.

Code: <

How to submit a form to the same page?
I have a table containing information about books in my library and this table has the following col

Issue Parsing XML into table
Hello all,

Im a bit new to php and new to phpfreaks. But thanks in advance for the help!
<

php/xmlrpc class issue
I am working on xml-rpc in php to start with.

I have a class that only has variables defined

Allowing ' and "
Hello everyone,

I am creating a form where users submit information to go into a database. I

New Search Engine
Hey everyone,

I have a ZIP Code Radius search engine already functional. it displays all of t

PL/SQL: ORA-00947: not enough values error message
Hi all i am getting Error(25,63): PL/SQL: ORA-00947: not enough values error message when executing

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash