|
Posted by Stefan Mueller on 11/18/05 09:36
> $myarray[3][5] = "Text 1";
> $myarray[3][6] = "Text 2";
>
> is perfectly valid.
You are rigth, it's working. My problem was that the output command was
wrong.
I used
echo "Output: $myarray[3][5]<p>";
and this showed me
Output: Array[5]
Therefore I thought it's something wrong with my definition of the array.
But it seems that I have to use
echo "Output: " . $myarray[3][5] . "<p>";
That's very strange for my because I always used
echo "Output: $myvariable";
to show the content of a variable and it always worked perfectly except with
arrays.
Stefan
Navigation:
[Reply to this message]
|