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
>>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
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 "
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
4 matches
Mail list logo