HTML Example

  $dom = new domdocument;
  $dom->loadHTMLFile("http://www.php.net/");
  $xp = new domxpath($dom);
  $result = $xp->query("/html/head/title");
  print $result[0]->firstChild->data;
--- output --
  PHP: Hypertext Preprocessor     
  
 
© copyright 2003 Bitflux GmbH