I have an associative array and want to repeat values to match each array inside the main array, i even dont know how to better explain what i need to accomplish, but the picture below showing exactly what i want to do. here is the array:
$dd = array();
$dd['Type'] = array('Fitted Case/Skin', 'Housing');
$dd['Compatible Model'] = array('For Apple iPhone 5', 'For Apple iPhone 5s','For Alcatel Pixi 4','For Alcatel Pixi 4 Plus Power');
Notice that both arrays has different count of values, i need to loop each array and create a html table with Main Array Keys as Headers and loop thru each array for table rows, but i need to match the count and repeat the missing values. i am sorry for bad explanation, but i tried my best, here exactly how i want it Html Table
I found the solution here