Re: [PHP] Looping from A to Z

2006-02-20 Thread Jason Motes
Richard K Miller wrote: Good afternoon. I'm having trouble getting PHP to loop from A through Z. Here is what I tried, coming from a C background: for ($l = "A"; $l <= "Z"; $l++) echo $l; I use this: for($i='a'; $i != 'aa'; $i++){ print $i; | -- PHP General Mailing List (http://w

Re: [PHP] Looping from A to Z

2006-02-19 Thread Jim McIntyre
>>Good afternoon. I'm having trouble getting PHP to loop from A >>through Z. Here is what I tried, coming from a C background: >> >>for ($l = "A"; $l <= "Z"; $l++) >> echo $l; >> >>// Returns A, B, C, ..., X, Y, Z, AA, AB, AC, AD, AE, ... YX, YY, YZ. (26 * 26 results!) >> >>Interestingly, i

Re: [PHP] Looping from A to Z

2006-02-19 Thread tedd
Good afternoon. I'm having trouble getting PHP to loop from A through Z. Here is what I tried, coming from a C background: for ($l = "A"; $l <= "Z"; $l++) echo $l; // Returns A, B, C, ..., X, Y, Z, AA, AB, AC, AD, AE, ... YX, YY, YZ. (26 * 26 results!) Interestingly, if I make it a "

Re: [PHP] Looping from A to Z

2006-02-19 Thread Philip Hallstrom
Good afternoon. I'm having trouble getting PHP to loop from A through Z. Here is what I tried, coming from a C background: for ($l = "A"; $l <= "Z"; $l++) echo $l; // Returns A, B, C, ..., X, Y, Z, AA, AB, AC, AD, AE, ... YX, YY, YZ. (26 * 26 results!) Interestingly, if I make it a "les

[PHP] Looping from A to Z

2006-02-19 Thread Richard K Miller
Good afternoon. I'm having trouble getting PHP to loop from A through Z. Here is what I tried, coming from a C background: for ($l = "A"; $l <= "Z"; $l++) echo $l; // Returns A, B, C, ..., X, Y, Z, AA, AB, AC, AD, AE, ... YX, YY, YZ. (26 * 26 results!) Interestingly, if I make it a