Re: Re: PHP 4.0 Bug #8975 Updated: modulo (%) sets the ritht operator to the result
| From: | Filip Sielimowicz | Date: | Wed, 31 Jan 2001 09:11:38 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #8975 Updated: modulo (%) sets the ritht operator to the result | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-45434@lists.php.net to get a copy of this message | ||
> for ( $i = 0; $i < array_count_values($whatever); $i++ )
> {
> print($whatever[$i]);
>
> if ( $i % $rowcount = 0)
> {
> print("</tr><tr>");
>
> }
>
> }
>
> and it kept resetting $rowcount to 0 and looping till it ran out of time.
>
I did'n know that '=' operator has higher priority than '%'.
Is it assumed ?
Is the example correct ?