Warning: include(../lntop.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domdocument-html-dump-mem.html on line 19

Warning: include() [function.include]: Failed opening '../lntop.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domdocument-html-dump-mem.html on line 19

Warning: include(../levoe_menu.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domdocument-html-dump-mem.html on line 46

Warning: include() [function.include]: Failed opening '../levoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domdocument-html-dump-mem.html on line 46



Учебник РНР
Назад Вперёд

DomDocument->html_dump_mem

(unknown)

DomDocument->html_dump_mem - выполняет дамп внутреннего дерева XML обратно в строку как HTML.

Описание

string DomDocument->html_dump_mem (void)

Создаёт HTML-документ из dom-представления. Эта функция обычно вызывается после построения нового dom-документа с нуля, как в следующем примере.

Пример 1. Создание простой шапки/header HTML-документа
<?php
$doc = domxml_new_doc("1.0");
$root = $doc->create_element("HTML");
$root = $doc->append_child($root);
$head = $doc->create_element("HEAD");
$head = $root->append_child($head);
$title = $doc->create_element("TITLE");
$title = $head->append_child($title);
$text = $doc->create_text_node("This is the title");
$text = $title->append_child($text);
echo "<PRE>";
echo htmlentities($doc->html_dump_mem());
echo "</PRE>";
?>

См. также DomDocument_dump_file(), DomDocument_html_dump_mem().


Назад Оглавление Вперёд
DomDocument->
get_elements_by_tagname
Вверх DomDocumentType->entities


Warning: include(../pravoe_menu.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domdocument-html-dump-mem.html on line 159

Warning: include() [function.include]: Failed opening '../pravoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domdocument-html-dump-mem.html on line 159

Rambler's Top100
© 2009 Тест скорости интернета |  Boont.Ru

Warning: include(../lnbottom.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domdocument-html-dump-mem.html on line 285

Warning: include() [function.include]: Failed opening '../lnbottom.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domdocument-html-dump-mem.html on line 285