|
Posted by Parrot on 11/04/05 07:43
>The following is what you need to create a array of arrays:
>
>function test()
>{
> $array[0][0] = "Hello";
> $array[0][1] = "World";
> $array[1][0] = "How Are";
> $array[1][1] = "You?";
> return $array;
>}
>
Yeah, that's the one I tried, but it didn't work.
>function test()
>{
> $array = array();
> $array[] = array("Hello", "World");
> $array[] = array("How are", "You?");
> return $array;
>}
This one did work. But now I'm wondering why it did and the first one
didn't?
Navigation:
[Reply to this message]
|