php7-mysql-data/Kapitel_2/Lektion_10/5_mehrdimensional.php
2016-08-21 00:15:10 +02:00

22 lines
336 B
PHP

<?php
$personen = [
[
'vorname' => 'Max',
'nachname' => 'Muster'
],
[
'vorname' => 'Barbara',
'nachname' => 'Beispiel'
]
];
foreach ($personen as $person) {
var_dump($person);
echo '<br>';
}
foreach ($personen as $person) {
var_dump($person['nachname']);
echo '<br>';
}