-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorte.php
More file actions
42 lines (38 loc) · 721 Bytes
/
orte.php
File metadata and controls
42 lines (38 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<pre>
<?php
$Orte=array('HH','HB','HL');
for ($i=0;$i<count($Orte);$i=$i+1){
echo $Orte[$i].' ';
}
echo '<br>';
foreach($Orte as $Ort){
echo $Ort.' ';
}
echo '<br><br>';
$Messungen=array(
array('HH','12h','7°'),
array('HB','18h','5°'),
array('HL','6h','-2°')
);
for($i=0;$i<count($Messungen);$i=$i+1){
for($j=0;$j<count($Messungen[$i]);$j=$j+1){
echo $Messungen[$i][$j].' ';
}
echo '<br>';
}
echo '<br><br>';
foreach($Messungen as $Messung){
foreach($Messung as $Wert){
echo $Wert.' ';
}
echo '<br>';
}
?>
</pre>
<br><br>
<pre>
<?php
$Messung=array('Ort'=>'HH','Zeit'=>'12h','Temperatur'=>'7°');
echo $Messung['Ort'].' '.$Messung['Zeit'].' '.$Messung['Temperatur'].'<br>';
?>
</pre>