$parent = $fd->query('//parent')->item(0); $element = $fd->makeObject('child', ['attr1' => 'value1', 'attr2' => 'value2']); $parent->appendChild($element);
$element = $fd->makeObject('p'); $element->textContent = 'This is a paragraph.';In both examples, the `$fd` variable refers to the FluentDOM instance. Based on the method name (`makeObject`) and its functionality, it can be inferred that this belongs to the FluentDOM package/library.