|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-05-21 17:16 UTC] jimw at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 06:00:01 2025 UTC |
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"); --- In the sample above, the reference to $row[$tmp] works fine but the more direct $row[$i+11] doesn't and returns a parsing error saying: Parse error: parse error, expecting `']'' in /home/httpd/html/xxx.html on line 47 As you can see, I have devised a work-around to the problem but I cannot easily see that I have made a mistake in it.