PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DomDocumentType->notations()> <DomDocumentType->internal_subset()
Last updated: Fri, 22 Aug 2008

view this page in

DomDocumentType->name()

(No version information available, might be only in CVS)

DomDocumentType->name() Devuelve el nombre del tipo de documento

Descripción

DomDocumentType
string name ( void )

Esta función devuelve el nombre del tipo de documento.

Valores retornados

Devuelve el nombre del objeto DomDocumentType, como una cadena.

Ejemplos

Example #1 Obtener el nombre del tipo de documento

<?php

include("ejemplo.inc");

if (!
$dom domxml_open_mem($cadena_xml)) {
    echo 
"Ocurri&oacute; un error al interpretar el documento\n";
    exit;
}

$tipo_doc $dom->doctype();
echo 
$tipo_doc->name(); // chapter

?>

Migración a PHP 5

Use la propiedad name del objeto DOMDocumentType.



add a note add a note User Contributed Notes
DomDocumentType->name()
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites