Bitrix Site Manager

CSite::GetByID

CDBResult
CSite::GetByID(
 string id
)

The method GetByID returns the site information as an instance of the CDBResult class.

Parameters

ParameterDescription
id The site ID.

See Also

Example



<?
$rsSites = CSite::GetByID("ru");
$arSite = $rsSites->Fetch();
echo "<pre>"; print_r($arSite); echo "</pre>";
?>