<<< Previous question <<< Question ID#0278.md >>> Next question >>>
Consider the following PHP code snippet:
<form method=get>
<select name ="fruits" id="fruits">
<option value="1">Apple</option>
<option>Orange</option>
<option value="3">Strawberry</option>
</select>
<input type="submit" value="Submit">
<?= $_GET['fruits'] ?? ''; ?>
What will be the output if you select 'Orange' from the dropdown menu?
- A) Orange
- B) 2
- C) 1
- D) Null
Answer
Answer: A