Bitrix Site Manager

CIBlock::GetByID

CDBResult
CIBlock::GetByID(
 int ID
);

Returns an information block by the ID.

Parameters

ParameterDescription
ID Information block ID.

Return Values

Returns an instance of CDBResult.

See Also

  • CDBResult
  • Result fields

    Example


    <?
    $res = CIBlock::GetByID($_GET["BID"]);
    if ($ar_res = $res->GetNext())
        echo $ar_res['NAME'];
    ?>