Manual do PHP
Anterior |  | Próxima

# DOMDocument->createElement

(no version information, might be only in CVS)

DOMDocument->createElement -- Create new element node

## Description

object DOMDocument->createElement ( string name [, string value])

This function returns a new instance of class DOMElement. The tag name of the element is the value of the name parameter. Optionally, a value for the new element may also be passed in. Este nó não será exibido no documento a não ser que ele seja inserido, por exemplo, com DOMNode->appendChild().

The return value is `FALSE` if an error occurred.

See also DOMDocument->createElementNS(), DOMNode->appendChild(), DOMDocument->createTextNode(), DOMDocument->createComment(), DOMDocument->createAttribute(), DOMDocument->createProcessingInstruction().

Anterior | Principal | Próxima
DOMDocument->createDocumentFragment | Acima | DOMDocument->createElementNS