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

search for in the

DomDocumentType->system_id> <DomDocumentType->notations
Last updated: Fri, 06 Nov 2009

view this page in

DomDocumentType->public_id

(PHP 4 >= 4.1.0)

DomDocumentType->public_id 文章型の PUBLIC ID を返す

説明

string PUBLIC_id ( void )

この関数は、文章型の PUBLIC ID を返します。

返り値

DomDocumentType の PUBLIC ID を文字列として返します。

以下の例は何も出力しません。

例1 PUBLIC ID を取得する

<?php
include("example.inc");

if (!
$dom domxml_open_mem($xmlstr)) {
  echo 
"Error while parsing the document\n";
  exit;
}

$doctype $dom->doctype();
echo 
$doctype->public_id();
?>

PHP 5 への移行

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



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

DomDocumentType->system_id> <DomDocumentType->notations
Last updated: Fri, 06 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites