Function __global->create_usa_state_selection_list

Definitions

sources/locations.php

  • Get a nice, formatted HTML list of USA states.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$selected_states array No No [] N/A N/A The currently selected states

Returns

  • The list of states
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a nice, formatted HTML list of USA states.
 *
 * @param  array $selected_states The currently selected states
 * @return Tempcode The list of states
 */

function create_usa_state_selection_list(array $selected_states = []) : object