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

search for in the

DOMException> <DOMEntityReference
Last updated: Fri, 13 Nov 2009

view this page in

DOMEntityReference::__construct

(PHP 5)

DOMEntityReference::__construct 新しい DOMEntityReference オブジェクトを作成する

説明

__construct ( string $name )

新しい DOMEntityReference オブジェクトを作成します。

パラメータ

name

エンティティ参照の名前。

例1 新しい DOMEntityReference を作成する

<?php

$dom 
= new DOMDocument('1.0''iso-8859-1');
$element $dom->appendChild(new DOMElement('root'));
$entity $element->appendChild(new DOMEntityReference('nbsp'));
echo 
$dom->saveXML(); /* <?xml version="1.0" encoding="iso-8859-1"?><root>&nbsp;</root> */

?>

参考



add a note add a note User Contributed Notes
DOMEntityReference::__construct
There are no user contributed notes for this page.

DOMException> <DOMEntityReference
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites