PHP 5.6.0RC3 is available

DOMEntityReference::__construct

(PHP 5)

DOMEntityReference::__construct ساخت DOMEntityReference object

Description

DOMEntityReference::__construct ( string $name )

ساخت شی DOMEntityReference.

Parameters

name

نام ارجاع موجودیت.

Examples

Example #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></root> */

?>

See Also

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top