I've already search it, but unfortunately didn't find any satisfactory solution to my problem.

I have following array with some subarrays:

```
Array (
    [0] => Array
        ([0] => AAAA
         [1] => BBBB
         [2] => CCCC
         [3] => DDDD
         [4] => EEEE
         [5] => FFFF
         [6] => GGGG)
    [1] => Array
        ([0] => hhhh
         [1] => iiii
         [2] => jjjj
         [3] => kkkk
         [4] => llll
         [5] => mmmm
         [6] => nnnn)

    ...

    [999] => Array
        ([0] => OOOO
         [1] => PPPP
         [2] => QQQQ
         [3] => RRRR
         [4] => SSSS
         [5] => TTTT
         [6] => UUUU)
)

```

Then with the following code I'm able to present it into a table:

```
$table = '<table border=1>';
    // Select values of the array to create table.
    foreach($array as $key => $row){
        $table .= '<tr>';

        foreach($row as $value){
            $table .= '
                <td>'.$value.'</td>
            ';
        }
        $table .= '</tr>';
    }
$table .= '</table>';

echo $table;

```

The graphical result is something like this:

```
AAAA | BBBB | CCCC | DDDD | EEEE | FFFF | GGGG
hhhh | iiii | jjjj | kkkk | llll | mmmm | nnnn
...
OOOO | PPPP | QQQQ | RRRR | SSSS | TTTT | UUUU

```

But as I would like to manipulate some of the cells of the table inserting for example a link in some of them I'm looking for a way that would allow me to do this:

```
        foreach($??? ??? $???){
            $table .= '
                <td>'.$value[0].'</td>
                <td>'.$value[1].'</td>
                <td>'.$value[2].'</td>
                <td>'.$value[3].'</td>
                <td>'.$value[4].'</td>
                <td><a href="#">'.$value[5].'</a></td>
            ';
        }

```

Anybody has an idea how I could manage to do this?