DOMDocument::createElement

DOMDocument::createElement

(PHP 5, PHP 7)

DOMDocument::createElementCreate new element node

Description

public DOMElement DOMDocument::createElement ( string $name [, string $value ] )

This function creates a new instance of class DOMElement. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild().