$el = new CIBlockElement; if($friend = $el->Add( Array( "MODIFIED_BY" => $USER->GetID(), "IBLOCK_ID" => 9, ... )))
$el = new CIBlockElement; if($friend = $el->Add( Array( "MODIFIED_BY" => $USER->GetID(), "IBLOCK_CODE" => "friends", ... )))