OK. I did test like this:
$a = 'Z';
$b = $a;
$b++;
print 'b = a';
print 'b++';
if ($a > $b) print 'a > b';
The output is funny:)
Thanks all of you! I think clive's way is the best for me:)
On 7/9/07, Chris <[EMAIL PROTECTED]> wrote
Hello all,
I met a very strange problem today. Take a look at the codes below:
for ($i = 'A'; $i < 'Z'; $i++) {
echo $i . ' ';
}
If you think the output is A-Z, please run it on your server and try.
Who can tell me why the result is not A-Z?
--
Zhang Xiao
Junior engineer, Web development
Etho
2 matches
Mail list logo