#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    18
    Rep Power
    0
    If i have a 2D array how do i access say the third element in the second row?
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    you can try the following..


    <?
    echo ($array[1][2]);
    //the third element in the second row..
    ?>



    ------------------
    SR -
    webshiju.com

    "The fear of the LORD is the beginning of knowledge..."

Similar Threads

  1. Inserting elements of multiple arrays in database
    By jkoll in forum PHP Development
    Replies: 1
    Last Post: February 19th, 2004, 12:47 PM
  2. How to loop through arrays and find matching elements
    By aiya in forum HTML Programming
    Replies: 5
    Last Post: February 9th, 2004, 10:35 AM
  3. remove elements from arrays
    By even29119 in forum Perl Programming
    Replies: 5
    Last Post: January 10th, 2004, 07:10 PM
  4. Deleting elements from arrays
    By raydenx in forum PHP Development
    Replies: 2
    Last Post: November 17th, 2003, 02:33 PM
  5. changeing elements in a multidimensional arrays ?
    By dannyg in forum PHP Development
    Replies: 1
    Last Post: March 2nd, 2003, 11:56 AM

IMN logo majestic logo threadwatch logo seochat tools logo