How to join two arrays with the index of array 1
following the index of array 2
.
Join data:
descricao
array1= datacol1, datacol2, datacol3, datacol4
array2= collinha1, collinha2, collinha3 ,collinha4
Print like this:
description, datacol1, collinha1
description, datacol2, collinha2
description, datacol3, collinha3
description, datacol4, collinha4
<?php
$desc1 = 'Listar=';
$nome['24-01-2016'] = 'João';
$nome['25-01-2016'] = 'Telma';
$nome['26-01-2016'] = 'Joana';
$nome['27-01-2016'] = 'Thiago';
$nome['28-01-2016'] = 'Marcio';
$nome['29-01-2016'] = 'Juliana';
$nome['30-01-2016'] = 'Marcos';
$nome['31-01-2016'] = 'Mariana';
foreach($nome as $indice => $valor){
print $desc1;
print '=>>>';
print $indice;
print '-';
print $valor;
print'<br>';
}
?>