$products = Array ( [products] => Array ( [0] => 12,11,10 [1] => 16,15,14
[2] => 600,103,20 ) );
$info = implode(",",$_POST['product']);
$info1 = implode(",",$_POST['product_weight']);
$info2 = implode(",",$_POST['quantity']);
admin_orderrequest_add($params,$products,$obj);
foreach($products as $k=>$v)
{
echo $product_id = $v[0];
echo $product_weight_id = $v[1];
echo $product_quantity = $v[2];
$weight_info = admin_get_weight_info($product_weight_id,$obj);
}
now output first time:
12,10,11
16,15,14
600,103,20
required output :
1st time
12
16
600
2nd time all second value of array
3rd time all 3rd value of array