Generating a table from a PHP array
        Posted  
        
            by robertdd
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by robertdd
        
        
        
        Published on 2010-03-18T06:29:50Z
        Indexed on 
            2010/03/18
            6:31 UTC
        
        
        Read the original article
        Hit count: 369
        
Hey, I'm not sure how difficult this but I have an array and would like to put it into and html table. I need to have two array strings per row, so if this were the array:
   $array1 = array(
     1 => 'one',
     2 => 'two',
     3 => 'three',
     4 => 'four',
     5 => "five",
     6 => 'six',
    );
And I need the html table to look like this:
| one |  two |
|three| four |
|five | six  |
Thanks!
© Stack Overflow or respective owner