fork download
  1. <? PHP
  2.  
  3. $arr_destini=array(['Nazione']=> array(['Austria','Baleari','Belgio','Rep.Ceca','Danimarca','Finlandia','Francia','Germania','Inghilterra','Irlanda','Italia','Liechtenstein',
  4. 'Lussemburgo','Norvegia','Olanda','Polonia','Portogallo','Spagna','Svezia','Svizzera','Ungheria']),['Europack']=> array([2,12,3,11,5,10,2,1,5,9,99,4,3,7,3,11,8,5,7,4,11]));
  5.  
  6.  
  7. / creazione tabella
  8.  
  9. echo"<table width='200' border='1' align='center'>";
  10. echo"<tr>";
  11. echo"<td><strong>="Nazione"></strong>;</td>";
  12. echo"<td><strong>="Europack"></strong>;</td>";
  13. echo"</tr>";
  14. echo"</table>";
  15.  
  16. //ciclo for per riempire la tabella
  17. for
  18. for($i=0;$i<count($arr_destini);$i++)
  19. {
  20. echo "<tr>";
  21. echo "<td>".$arr_destini['Nazione'][$i]."</td>";
  22. echo "<td>".$arr_destini['Europack'][$i]."</td>";
  23. echo"</tr>";
  24. }
  25. echo"</table>";
  26. ?>
  27.  
Runtime error #stdin #stdout 0.02s 13664KB
stdin
Standard input is empty
stdout
Parse error: syntax error, unexpected T_VARIABLE in /home/GUZ8ht/prog.php on line 3