How can multiple values be passed in a drop-down menu in PHP?

When passing multiple values in a drop-down menu in PHP, you can achieve this by using arrays for the values and labels. This way, you can associate each value with a corresponding label in the drop-down menu.

<select name="dropdown">
    <?php
    $options = array(
        'value1' => 'Label 1',
        'value2' => 'Label 2',
        'value3' => 'Label 3'
    );

    foreach ($options as $value => $label) {
        echo "<option value='$value'>$label</option>";
    }
    ?>
</select>