Documentation

GetByID

CDBResult
GetByID(
 int ID
);

Returns parameters of a section identified by the ID.

Parameters

ParameterDescription
ID Section ID.

Return Values

Returns an instance of CDBResult.

See Also

  • CDBResult
  • Section fields

    Example


    <?
    $res = CIBlockSection::GetByID($_GET["GID"]);
    if ($ar_res = $res->GetNext())
        echo $ar_res['NAME'];
    ?>
  • © «Bitrix24», 2001-2024