I didn't see the OP, but:
for($i = 'A'; $i != 'Z'; $i = chr(ord($i) +1)){
echo "\t$i\n";
}
On 5/26/05, Stephen Johnson <[EMAIL PROTECTED]> wrote:
> Then this is what I would suggest.
>
> $alph = array('*', 'A', 'B','C'...etc) ;
>
> $i=0;
> Echo"";
> While($alph[$i]){
> echo"$alph[$i]";
>
or
foreach(range('A', 'Z') as $letter){
echo "$letter"
}
www.php.net/range
On 5/27/05, Rory Browne <[EMAIL PROTECTED]> wrote:
> I didn't see the OP, but:
>
> for($i = 'A'; $i != 'Z'; $i = chr(ord($i) +1)){
> echo "\t$i\n";
> }
>
>
> On 5/26/05, Stephen Johnson <[EMAIL PROTECTED]> wrote:
Then this is what I would suggest.
$alph = array('*', 'A', 'B','C'...etc) ;
$i=0;
Echo"";
While($alph[$i]){
echo"$alph[$i]";
$i++;
}
Echo"";
On 5/25/05 9:54 PM, "MIGUEL ANTONIO GUIRAO AGUILAR"
<[EMAIL PROTECTED]> wrote:
> Yes, because I will create a field within the for loop, and the
>
3 matches
Mail list logo