Results 1 to 4 of 4

Thread: multi dimensional arrays [resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    multi dimensional arrays [resolved]

    I know this might seem easy, but I have been looking and either can't find what I'm looking for or I find something that looks very complex.

    Firstly how do you define an array, I PHP is typeless, but in JavaScript I always define arrays out of habit, and I would like to keep up the habit.

    secondly, how do you make a multiD one?

    I thought it would be:
    $a = new array();
    //or new array($a);
    then:
    $a[0] = ["1","2"];
    $a[1] = ["3","4"];
    etc.

    I get errors though.
    Someone please help.
    Last edited by Acidic; Apr 2nd, 2004 at 07:11 PM.
    Have I helped you? Please Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width