$iblockID = 10; $element = new CIBlockElement; $props = array( "PROP1" => "Value 1", "PROP2" => "Value 2" ); $elementID = $element->Add(array( "IBLOCK_ID" => $iblockID, "NAME" => "New Element", "PROPERTY_VALUES" => $props ));
$iblockID = 20; $element = new CIBlockElement; $filter = array( ">=DATE_CREATE" => "01.01.2021" ); $elements = $element->GetList(array(), $filter); while ($el = $elements->Fetch()){ echo $el["NAME"]."In both examples, CIBlockElement belongs to the Bitrix framework package library specifically designed for working with the Bitrix CMS.
"; }