By using the code below in CodeIgniter, we can generate a table as below
$this->load->library('table');
$data = array(
array('11', '12', '13'),
array('21', '22', '23'),
array('31', '32', '33'),
array('41', '42', '43')
);
echo $this->table->generate($data);
Output:

I want to ask how can I put this array in for loop likes:
for ($x = 0; $x < 5; $x++) {
for ($y = 0; $y < 4; $y++) {
$data xxx;
}
}
What is the code to replace in xxx?
Thanks