fork download
  1. <?php
  2.  
  3. // your code goes here
  4. $arr1 = array ('datacol1', 'datacol2', 'datacol3', 'datacol4');
  5.  
  6. $arr2= array ('collinha1', 'collinha2', 'collinha3', 'collinha4');
  7.  
  8. for($i = 0; $i < count($arr1); $i ++)
  9. {
  10. echo 'descricao, '.$arr1[$i].', '.$arr2[$i].'<br>\n';
  11. }
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
descricao, datacol1, collinha1<br>\ndescricao, datacol2, collinha2<br>\ndescricao, datacol3, collinha3<br>\ndescricao, datacol4, collinha4<br>\n