Posted by Martijn on 06/26/05 02:24
>>> I had to add $x=$x+1; >>> >>> but perhaps there is another way? >> >> >> $x++; Some other approaches: $x = 0; if ( ++$x % 2 ) { ... } would be even shorter, or: $x = 0; if ( $x = ~$x ) { ... } would also work. -- Martijn http://www.sereneconcepts.nl
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming