Re: unexpected for-loop operation
| From: | Sascha Cunz | Date: | Fri, 20 Sep 2002 23:23:34 +0000 |
| Subject: | Re: unexpected for-loop operation | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-88509@lists.php.net to get a copy of this message | ||
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 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