API16

API16:JLanguage/hasKey

From Joomla! Documentation

Revision as of 22:49, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Determines is a key exists <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Determines is a key exists

[Edit Descripton]

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 />