I have five different arrays in my program. All of the arrays are of the same length. For this example let's say all of the arrays contain 6 items. The first item array1[0] should be paired with alle the values of the other arrays index 0. So I get an array of all the index 0s, an array with all the index 1 and 2,3,4 and index 5...
How would one do this?
Added more details: I have the following arrays containing information of the items in a shopping_cart.
$nameArray - contains the names of the products in the basket
$productIdArray - contains the id_numbers of the products in the basket
$priceArray - array of the prices for each item in the basket
$quantityArray - array which holds the quantity of each item in the basket
etc. etc.
I'll like to change the output, so I can send a multidimensionel array containing arrays representing a single product each with all of it's values for sending it of in an ajax call...
Hope it makes sense. :)