I need to mount an array as below:
$aDup = array(
array('carlos','2016-06-20','300.00'),
array('mario','2016-07-20','300.00'),
array('joao','2016-08-20','300.00'),
array('silvio','2016-09-20','300.00')
);
To fill in this way:
foreach ($aDup as $dup) {
$nDup = $dup[0];
$dVenc = $dup[1];
$vDup = $dup[2];
$resp = $nfe->tagdup($nDup, $dVenc, $vDup);
}
Receiving this data via POST
$nDup = $_POST['nDup'];
$dVenc = $_POST['nDup'];
$vDup = $_POST['nDup'];
Sent by this HTML that looks like this:
<input name='nDup[]' type='text'>
<input name='dVenc[]' type='text'>
<input name='vDup[]' type='text'>