How to iterate through one item each of the two array per time instead of looping through the complete cycle of dynamic html input in PHP
04:28 27 Nov 2017

I'm having two arrays of fields (id[], names[]) and I want to loop through one item each of the two array per time instead of looping through the complete cycle of id[] before looping through names[] using php

HTML Code

     
   
   

PHP Code

 $value) {
    echo "id $key = $value"."
"; } foreach($_POST['names'] as $key => $value) { echo "names $key = $value"."
"; } } ?>

Thanks.

php html arrays loops submission