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
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.