Bitrix Site Manager

CLanguage::GetByID

CDBResult
CLanguage::GetByID(
 string id
)

The method GetByID returns language by its ID as an instance of CDBResult class.

Parameters

ParameterDescription
id Double-character language ID.

See Also

Example



<?
$rsLang = CLanguage::GetByID("en");
$arLang = $rsLang->Fetch();
echo "<pre>"; print_r($arLang); echo "</pre>";
?>