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

search for in the

DOMDocument> <DOMComment
[edit] Last updated: Fri, 24 Jun 2011

view this page in

DOMComment::__construct

(PHP 5)

DOMComment::__construct ساخت شی جدید DOMComment

Description

DOMComment::__construct ([ string $value ] )

ساخت شی جدید DOMComment. این شی فقط خواندنی است. ممکن است به سند اضافه شود اما گره‌های اضافی ممکن است به این گره تا زمان برقراری ارتباط آن به سند الحاق نشوند . برای ساخت گره قابل نوشتن از DOMDocument::createComment استفاده کنید.

Parameters

value

مقدار توضیح.

Examples

Example #1 Creating a new DOMComment

<?php

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

?>

See Also



add a note add a note User Contributed Notes DOMComment::__construct - [0 notes]
There are no user contributed notes for this page.

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