2
I have that data:
$answers = [
'text-1626173297126' => [
'Capítulo teste',
'Juarez Neri Antônio Pereira',
'CAVALEIROS DA LUZ'
],
'text-1626173306001' =>
[
'Pedro Ds',
'RenGraminhani',
'CAR CESAR TANURI'
],
'text-1626173476932' => [
'[email protected]',
'[email protected]',
'caranuri.com'
]
];
I need the first column (text-1626173297126) to be in the first column of an html table; text-1626173306001, in the second column; text-1626173476932, third;
I tried to do, something like:
foreach ($answers as $k => $value) {
echo '<tr>';
foreach ($value as $val) {
echo '<td>', $val, '</td>';
}
echo '</tr>';
}
Desired exit