Function __global->get_lang_browser

Definitions

sources/lang.php

  • Get the closest fit language codename to what the browser is requesting.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Returns

  • The closest-fit language to what the browser wants (null: browser doesn't ask)
  • Type: ?LANGUAGE_NAME
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the closest fit language codename to what the browser is requesting.
 *
 * @return ?LANGUAGE_NAME The closest-fit language to what the browser wants (null: browser doesn't ask)
 */

function get_lang_browser() : ?string