What naming convention should be followed for select elements with multiple options in PHP?

When creating select elements with multiple options in PHP, it's important to follow a naming convention that allows you to easily identify and process the selected option. One common convention is to append square brackets [] to the name attribute of the select element, which allows PHP to treat the selected options as an array.

<select name="colors[]" multiple>
  <option value="red">Red</option>
  <option value="blue">Blue</option>
  <option value="green">Green</option>
</select>