1
echo "<script>console.log(\"".sizeOf($status)."\");</script>";
That one array has a size of 228.
Within that array there is nome
, status1
, status2
, status3
, status4
. (5 columns).
I wanted to print them out in table form.
if($status[$i]['numStatus'] == 1){
echo "<tr>";
echo "<td>".$status[$i]['Nome']."</td>";
echo "<td>" . $status[$i]['status'] . "</td>".PHP_EOL;
} else if($status[$i]['numStatus'] == 2) {
echo "<td>" . $status[$i]['status'] . "</td>".PHP_EOL;
} else if($status[$i]['numStatus'] == 3){
echo "<td>" . $status[$i]['status'] . "</td>".PHP_EOL;
} else if ($status[$i]['numStatus'] == 4){
echo "<td>" . $status[$i]['status'] . "</td>".PHP_EOL;
echo "</tr>".PHP_EOL;
}
I did it this way, but I think there’s a better way, isn’t?