Array values

Discussion in 'PHP' started by xor83, Feb 27, 2009.

  1. #1
    I trying to parse HTML Table tags and get all the values in a Array. How can I get values from that array One-by-One. I have tried many array sample but when I try to print this array it only returns series of value "Array" not the value.
    see this image how that array look like

    ----------------------------------------------------------------------------------------
    [​IMG]

    I want that first it shows value for node "1" value...1,2,3,4 and so on
    Any help
     
    xor83, Feb 27, 2009 IP
  2. Scripten

    Scripten Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You probably used the "Array" incorrect. But I can't tell that. Post the whole code.
     
    Scripten, Feb 27, 2009 IP
  3. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #3
    If you have a list of arrays and you want to loop through all of them, you can use for loop !
    
    <?php
    for ($i=1; $i<=100; $i++) {
    echo $myarray[$i];
    }
    ?>
    PHP:
     
    ActiveFrost, Feb 27, 2009 IP
  4. amerigohosting

    amerigohosting Peon

    Messages:
    255
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    foreach ($tableArray as $singleRowValue){echo "$singleRowValue\n";}
     
    amerigohosting, Feb 27, 2009 IP
  5. xor83

    xor83 Well-Known Member

    Messages:
    181
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Thanx for rpl

    And how to get values from this array?
    [​IMG]
     
    xor83, Feb 28, 2009 IP