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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to