foreach array for 3 or more

Solutions on MaxInterview for foreach array for 3 or more by the best coders in the world

showing results for - "foreach array for 3 or more"
Hannah
18 Feb 2020
1$i = 0;
2foreach ( $signatures as $signature ) {
3    if($i==10){
4        break;
5    }
6    echo 'Signature ID: ' . $signature . $i;
7    $i++;
8}
9
Fernando
02 Jul 2020
1foreach ($product_id as $index => $h) {
2    $v = $size_id[$index];
3    $q = $quantity[$index];
4    $insert_pending = "INSERT INTO pending_orders 
5                            (cus_id,product_id,size_id,quantity,ip_address) VALUES 
6                            ('$cus_id','$h','$v','$q','$ip_address')";
7    $run2 = mysqli_query($con, $insert_pending);
8}
similar questions
queries leading to this page
foreach array for 3 or more