Dom\HTMLDocument::createEmptyCreates an empty HTML document Description
public static Dom\HTMLDocument Dom\HTMLDocument::createEmpty(string
$encoding = "UTF-8")Creates an empty HTML document without any elements. Parameters
Return ValuesAn empty HTML document. ExamplesExample #1 Dom\HTMLDocument::createEmpty example Creates an empty document and serializes it.
The above example will output: string(0) "" See Also
|