Re: Bug #4443: inconsistant parsing

From: Date: Sun, 14 May 2000 19:20:00 +0000
Subject: Re: Bug #4443: inconsistant parsing
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-18731@lists.php.net to get a copy of this message
This notation is only supported in PHP 4.0. Zeev On Mon, 15 May 2000, Faisal Nasim wrote: > | for($i=0; $i<3; $i++) { > | if(($row[$i+11] != "") || ($row[$i+19] != "")) { > | print("<tr><td>"); > | if($row[$i+11] != "") { > | $tmp = $i + 11; > | print("<table width=100%><tr><td>$row[$tmp]</td>"); > | $tmp = $i + 15; > | print("<td > align=right>($row[$i+11])</td></tr></table>\n"); > > You have to wrap the arrays in {}. For example: > > print "The row value is {$row[$tmp]}!!!"; > > > Enjoy! > > Faisal > > > -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#18731) next »