Re: [PHP-DEV] unexpected for-loop operation

2002-09-20 Thread Sascha Cunz
This is exactly, what the code should do; in Zend/zend_operators.c there is an special function for this to do (increment_string), so i assume this is the expected result. Sascha > I know there is a better way to do that, and this code is silly, but > still... > Try running these two loops in

[PHP-DEV] unexpected for-loop operation

2002-09-20 Thread Vlad Krupin
I know there is a better way to do that, and this code is silly, but still... Try running these two loops in PHP 4.2.3. for($i = 'A'; $i <= 'Y'; $i++){ echo "$i "; } for($i = 'A'; $i <= 'Z'; $i++){ echo "$i "; } Notice the difference in output. Is this the expected result? Vlad --