User Tools

Site Tools


kurs:php9.1

Foreach Schleife:

<?php
print("<table>");
foreach($computer as $key => $wert){
	print("<tr><td>".$key."</td><td align=right>".$wert."</td></tr>");
}
print("</table>");
?>

Ausgabe

IBM 2318
Acer 679
Greenline 790
Siemens 0
kurs/php9.1.txt · Last modified: 2014/09/10 21:22 (external edit)