mirror of
https://github.com/janunger/rheinwerk-video-training.git
synced 2024-11-23 23:53:41 +01:00
27 lines
407 B
PHP
27 lines
407 B
PHP
|
<?php
|
||
|
|
||
|
$person = [
|
||
|
'vorname' => 'Max',
|
||
|
'nachname' => 'Muster',
|
||
|
'strasse' => 'Musterstraße 1'
|
||
|
];
|
||
|
|
||
|
|
||
|
foreach ($person as $wert) {
|
||
|
var_dump($wert);
|
||
|
echo '<br>';
|
||
|
}
|
||
|
|
||
|
|
||
|
echo '<ul>';
|
||
|
foreach ($person as $wert) {
|
||
|
echo '<li>' . $wert . '</li>';
|
||
|
}
|
||
|
echo '</ul>';
|
||
|
|
||
|
|
||
|
echo '<ul>';
|
||
|
foreach ($person as $schluessel => $wert) {
|
||
|
echo '<li>' . $schluessel . ': ' . $wert . '</li>';
|
||
|
}
|
||
|
echo '</ul>';
|