Re: The document contains no data -->BUG!?

From: Date: Mon, 06 Nov 2000 14:33:21 +0000
Subject: Re: The document contains no data -->BUG!?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23886@lists.php.net to get a copy of this message
Alexander Mardirossian wrote: > > <skipped...> > > The following program does NOT work: > <TABLE border=1 width=100% height=90% bgcolor="green"> > <?php > for ($i=1; $i<=10;$i++) { > echo "<TR>"; > $q=1; > while ((q++)<5) { > echo "<TD>Row Number: $i, Column Number: $q</TD>"; > } > echo "</TR>"; > } > ?> > </TABLE> Hi! Of course this code won't work, 'cause here will be parse error at line "while ((q++)<5) {". PHP doesn't know anything about 'q++', but (s)he will know about '$q++'. As far as i know, this isn't PHP bug, but ... ;-) -- Pavel a.k.a. Papi

« previous php.general (#23886) next »