Print 'a' to 'z' via for loop
Posted: Mon Oct 26, 2009 4:24 am
A very simple problem..
How Can I print a to z NOT a to y ?
It is a part of a code where
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.
How Can I print a to z NOT a to y ?
It is a part of a code where
Code: Select all
$alpha= 'a';
for($alpha='a';$alpha!='z';$alpha++)
{
echo $alpha.' ';
}
$alpha!='z' have the problem..$alpha<='z' creates problem.
please help me about the for loop condition.