Posted by Parrot on 11/04/05 18:31
On 4 Nov 2005 06:18:00 -0800, "Chung Leong"
<chernyshevsky@hotmail.com> wrote:
>That's the result from the following:
>
>1: function test()
>2:{
>3: $array[0][0] = "Hello";
>4: $array[0][1] = "World";
>5: $array[1][0] = "How Are";
>6: $array[1][1] = "You?";
>7: return array($array);
>8:}
>
>The function I gave you was:
>
>1: function test()
>2:{
>3: $array[0][0] = "Hello";
>4: $array[0][1] = "World";
>5: $array[1][0] = "How Are";
>6: $array[1][1] = "You?";
>7: return $array;
>8:}
>
>Note the difference at line 7.
Ah yes, I forgot that I added that... I was trying to follow JDS'
advice.
Okay, that works... but now that leaves the question of why didn't my
original code work?
Navigation:
[Reply to this message]
|