I have on array like:
$myarray = array("color", "red", "size", "big", "flavor", "bitter"); where color, size and flavor are the keys and the other are the values. How can I loop true the values only on the array.
I have a few arrays like that one so I only need to create a table and display their values like:
<table>
<thead>
<tr>
<th>Color</th>
<th>Size</th>
<th>Flavor</th>
</tr>
</thead>
<tbody>
// I'm stuck here because I don't know how to get the values of each array
</tbody>
</table>
Any help will be appreciated
Thanks
But yes, you should really use a proper associative array instead of this makeshift solution.