I need so expert help here~I am doing array where i use array_unique for name and array_count_values for age. This is to identify the unique name that appears and how many times they appear in a database. I wish to display them out in a table but currently only able to do this
john
mike
tim
tom
1
1
2
3
whereas i just need them to be align together somehow so i can print them out neatly~
foreach ($name as $namearray){
echo "<tr>";
echo "<td>$final2</td>\n";
}
echo "</br>";
foreach ($age as $agearray) {
echo "<td>$final</td>\n";
echo "</tr>";
}
}
anyhelp would be greatly appreaciated~~