Re: Re: PHP 4.0 Bug #8975 Updated: modulo (%) sets the ritht operator to the result
| From: | Wico de Leeuw | Date: | Wed, 31 Jan 2001 09:14:44 +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-45435@lists.php.net to get a copy of this message | ||
Someone is looking for the == again :)
Most error made with php i think :)
At 10:11 31-1-01 +0100, Filip Sielimowicz wrote:
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 ? -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net