Documentation

GetNextElement

_CIBElement
CIBlockResult::GetNextElement();

The method returns an instance of _CIBElement from the selection.

Return Values

The method returns an instance of _CIBElement and moves the pointer to the next record.

The method returns false when it reaches the last record or if the result contains no records.

See Also

  • _CIBElement
  • CIBlockResult::GetNext
  • CIBlockElement::GetList

    Example


    <?
    $res = CIBlockElement::GetByID($_GET["PID"]);
    if ($obRes = $res->GetNextElement())
    {
        $ar_res = $obRes->GetFields();
        echo $ar_res['NAME'];
    }
    ?>
  • © «Bitrix24», 2001-2024