Print 'a' to 'z' via for loop

Posted on 16th Feb 2014 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.

Other php-forum