DomDocumentType->name

(no version information, might be only in CVS)

DomDocumentType->name --  Restituisce il nome del tipo documento

Descrizione

string DomDocumentType->name ( void )

Questa funzione restituisce il nome del tipo documento.

Esempio 1. Ottenere il nome del tipo documento

<?php
 
include("example.inc");
 
if (!
$dom domxml_open_mem($xmlstr)) {
    echo 
"Error while parsing the document\n";
    exit;
}
 
$doctype $dom->doctype();
echo 
$doctype->name(); // chapter
 
?>