Re: [PHP] Re: [PHP-DB] Letters loop

2005-05-27 Thread Rory Browne
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]"; >

Re: [PHP] Re: [PHP-DB] Letters loop

2005-05-27 Thread Rory Browne
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:

[PHP] Re: [PHP-DB] Letters loop

2005-05-27 Thread Stephen Johnson
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 >