Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 5203283
Hits Heute: 1386
max. Hits (10.07.07): 6964
User Online: 27
Scripts: 2828

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Facebook ]

[ Eigene Domain? ]

[ Buchtipp ]

ASP. NET. Grundlagen und Profiwissen
ASP. NET. Grundlagen und Profiwissen

Manuals > PHP > DomNode->get_content

DomNode->get_content

(no version information, might be only in CVS)

DomNode->get_content --  Gets content of node

Description

string DomNode->get_content ( void )

This function returns the content of the actual node.

Beispiel 1. Getting a content

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

$root = $dom->document_element();

$node_array = $root->get_elements_by_tagname("element");

for (
$i = 0; $i<count($node_array); $i++)
{
    
$node = $node_array[$i];
    print (
"The element[$i] is: ".$node->get_content());
}

?>


Copyright 1998 - 2009 by I.S.U.M.