API16

JLanguage/hasKey: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Determines is a key exists <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </...
 
m preparing for archive only
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
Determines is a key exists
Determines is a key exists


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JLanguage/hasKey|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JLanguage/hasKey}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 39: Line 37:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JLanguage/hasKey|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JLanguage/hasKey}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=hasKey
  category=hasKey
  category=JLanguage
  category=JLanguage
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API16]]

Latest revision as of 01:52, 25 March 2017

Description

Determines is a key exists


<! removed transcluded page call, red link never existed >

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]);
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples