Oke so I don't know why this is so hard, all information I find is only for two arrays like array_combine.
I have 3 arrays that I get from dynamically created input fields in a form, so now I want to retrieve the data and print it out like:
Item1 (array1)
Item1 (array2)
Item1 (array3)
Item2 (array1)
Item2 (array2)
Item2 (array3)
But with my code right now it completes one array and than goes to the next.
$article_id = $_REQUEST['article_id'];
$article_descr = $_REQUEST['article_descr'];
$article_ammount = $_REQUEST['article_amount'];
foreach($article_id as $artid) {
echo = 'Article id: '.$artid.'<br>';
}
foreach($article_descr as $art_descr) {
echo 'Article description: '.$art_descr.'<br>';
}
foreach($article_ammount as $art_amount) {
echo 'Article ammount: '.$art_amount.'<br>';
}
$article_id['item1']$article_descr['item1']... ?