$id = 1; $el = CIBlockElement::GetArrayByID($id); print_r($el);
$id = 2; $el = CIBlockElement::GetArrayByID($id); echo "The element name is: " . $el["NAME"];This code will retrieve the name of an element in the information block specified by ID 2. Package Library: Bitrix.