API16:JLanguage/hasKey
From Joomla! Documentation
Description
Determines is a key exists
Template:Description:JLanguage/hasKey
Syntax
hasKey($string)
| Parameter Name | Default Value | Description |
|---|---|---|
| $string | $key The key to check |
Returns
boolean True, if the key exists
Defined in
libraries/joomla/language/language.php
Importing
jimport( 'joomla.language.language' );
Source Body
function hasKey($string)
{
$key = strtoupper($string);
return isset ($this->_strings[$key]);
}
[Edit See Also] Template:SeeAlso:JLanguage/hasKey
Examples
<CodeExamplesForm />