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

search for in the

DomDocumentType->notations> <DomDocumentType->internal_subset
Last updated: Fri, 13 Nov 2009

view this page in

DomDocumentType->name

(PHP 4 >= 4.1.0)

DomDocumentType->name 文章型の名前を返す

説明

string name ( void )

この関数は文章型の名前を返します。

返り値

DomDocumentType の名前を文字列として返します。

例1 文章型の名前を取得する

<?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

?>

PHP 5 への移行

DOMDocumentType オブジェクトの name プロパティを使用してください。



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

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