Re: Bug #4443: inconsistant parsing
| From: | Faisal Nasim | Date: | Sun, 14 May 2000 19:35:29 +0000 |
| Subject: | Re: Bug #4443: inconsistant parsing | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-18732@lists.php.net to get a copy of this message | ||
Oops, I came to my mind but I thought that it should be there
in atleast 3.0.16.... anyway....
xdesign,
You'll have to use a workaround:
print "The row value is: " . $row [$tmp] . "!!!";
In _my_ previous message, s/arrays/arrays\/objects elements/
Enjoy!
Faisal
| 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