Function __global->setlocale

Definitions

sources_custom/phpstub.php

  • Set locale information.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$category integer No No required parameter N/A N/A The locale category (LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME)
$locale mixed No No required parameter N/A N/A The locale (Some PHP versions require an array, and some a string with multiple calls)

Returns

  • The set locale (false: error)
  • Type: ~string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Set locale information.
 *
 * @param  integer $category The locale category (LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME)
 * @param  mixed $locale The locale (Some PHP versions require an array, and some a string with multiple calls)
 * @return ~string The set locale (false: error)
 */

function setlocale(int $category, $locale)