Hey I'm trying to get the key of my array in a foreach. But got this error Warning: array_keys() expects parameter 1 to be array, string given on line 10
Here is my array:
$status_de = array
(
'1' => 'Anfrage',
'2' => 'Angebot',
'3' => 'Abgeschlossen'
);
Here is my code:
<select name="land">
<?php foreach ($status_de as $status) {
echo "<option value='" . array_keys($status) . "'>" . $status . "</option>";
}
?>
</select>