Re: A quesiton about arrays and indexes
| From: | Miguel Cruz | Date: | Sat, 30 Mar 2002 00:31:04 +0000 |
| Subject: | Re: A quesiton about arrays and indexes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90734@lists.php.net to get a copy of this message | ||
On Fri, 29 Mar 2002, David Johansen wrote:
> Ok, I have a question about arrays and indexes. Something weird happens when
> I try this:
>
> echo "<td>week[$i][$j]: $week[$i][$k][0]</td>";
If you're array subscripts inside "double quotes", then use {braces}
around the entire variable:
echo "<td>week[$i][$k]: {$week[$i][$k][0]}</td>":
miguel