Function __global->post_param_regions

Definitions

sources/locations.php

  • Retrieve POSTed regions / countries from a multi-region field.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$stub ID_TEXT No No required parameter N/A N/A The parameter name stub
$default ~?string No No required parameter N/A N/A The default value (false: none, and require the parameter to be provided) (null: none, and do not require)
$filters integer No No 7871 N/A N/A A bitmask of INPUT_FILTER_* filters

Returns

  • The ISO region / country codes separated by a new line (null: not provided and was not required)
  • Type: ?string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Retrieve POSTed regions / countries from a multi-region field.
 *
 * @param  ID_TEXT $stub The parameter name stub
 * @param  ~?string $default The default value (false: none, and require the parameter to be provided) (null: none, and do not require)
 * @param  integer $filters A bitmask of INPUT_FILTER_* filters
 * @return ?string The ISO region / country codes separated by a new line (null: not provided and was not required)
 */

function post_param_regions(string $stub, $default, int $filters = 7871) : ?string