Function __global->does_lang_exist

Definitions

sources/lang.php

  • Find whether the specified language exists.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$lang LANGUAGE_NAME No No required parameter N/A N/A The language

Returns

  • Whether the language exists
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find whether the specified language exists.
 *
 * @param  LANGUAGE_NAME $lang The language
 * @return boolean Whether the language exists
 */

function does_lang_exist(string $lang) : bool